mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
test(node): compare complete blob contents after cancellation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user