Fix two intermittently failing library tests (closes #90)
check / check (push) Successful in 28s
check / check (push) Successful in 28s
Library.close() now returns a promise that resolves once an in-flight refresh, including its cache write, has finished. A refresh changes RAM before it writes the cache file, so the interval test could see the new state, close, and remove the directory while the write was still running. The library tests now await close(). The precache test waited for its stub source to be called, but the cache records a file only after checking it on disk, so status() could lag. It now waits for both fills to report "done". Model: opus-5-5
This commit is contained in:
@@ -18,6 +18,13 @@ Tag v1.0.0.
|
||||
|
||||
# Completed Steps
|
||||
|
||||
- 2026-09-23: Fixed two intermittently failing library tests (issue 90).
|
||||
`Library.close()` now returns a promise that resolves once an in-flight
|
||||
refresh, including its cache write, has finished; the library tests await it,
|
||||
so `afterEach` no longer removes the cache directory while a refresh is still
|
||||
writing into it. The precache test waits for both fills to report "done"
|
||||
instead of for its stub source to be called, which happened before the cache
|
||||
recorded the file.
|
||||
- 2026-09-23: Made the download deadline an idle deadline (issue 24).
|
||||
`downloadTimeoutMs` now aborts a file or thumbnail download only after no
|
||||
bytes have arrived for that long, default 60 seconds, instead of bounding the
|
||||
|
||||
Reference in New Issue
Block a user