Download-albums example test no longer depends on the disk's free space (closes #160)
check / check (push) Successful in 2m3s

The test left freeBelowBytes at its 50 GiB default, so on a disk with under
50 GiB free the content cache's limit fell to zero. Downloading another photo
then evicted photo 1's cached original, and the test fetched it a fourth time
instead of copying it. Both of its libraries now open with freeBelowBytes: 0.
Every other test that opens a library or content cache with the real free
space was read; none has a result that depends on it. The 50 GiB default is
unchanged.

Model: opus-5-5
This commit is contained in:
2026-10-03 12:36:54 +00:00
parent 9e94542a57
commit 1ee3ca1bd2
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -162,6 +162,9 @@ describe("examples/download-albums.ts", () => {
refreshIntervalSeconds: 3600,
precacheThumbnails: false,
precacheOriginals: false,
// The test counts fetches, so the free space of the disk it
// runs on must not shrink the cache and evict photo 1.
freeBelowBytes: 0,
});
const first = await open();