test(node): compare complete blob contents after cancellation

This commit is contained in:
Xuanwo
2026-11-13 08:42:31 +00:00
parent 6b8f8798b8
commit 8096f84897
+1 -1
View File
@@ -364,7 +364,7 @@ describe("fetchBlobRanges", () => {
expect(handle!.isClosed()).toBe(false);
expect(await handle!.tell()).toBe(0n);
// The single request permit must also be released by cancellation.
expect(await handle!.readRange(0n, 4n)).toEqual(Buffer.from("alph"));
expect(await handle!.readRange(0n, 5n)).toEqual(Buffer.from("alpha"));
} finally {
controller.abort();
await handle!.close();