From 986c920a5bf3abe03c33362d52118fcae736ec6d Mon Sep 17 00:00:00 2001 From: "nekomimi.pet" Date: Sat, 3 Oct 2026 23:34:41 -0400 Subject: [PATCH] test(tiered-storage): read the special-key stream so its file handle closes --- packages/@wispplace/tiered-storage/test/streaming.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@wispplace/tiered-storage/test/streaming.test.ts b/packages/@wispplace/tiered-storage/test/streaming.test.ts index 935e661..7118e85 100644 --- a/packages/@wispplace/tiered-storage/test/streaming.test.ts +++ b/packages/@wispplace/tiered-storage/test/streaming.test.ts @@ -599,6 +599,8 @@ describe('Streaming Operations', () => { const result = await tier.getStream(specialKey) expect(result).not.toBeNull() expect(result!.metadata.key).toBe(specialKey) + // Reading to the end also closes the file handle the stream owns. + expect((await streamToBuffer(result!.stream)).toString()).toBe(testData) }) }) }) -- 2.54.0