test(fs): exercise byte reads with a live cancellation signal
This commit is contained in:
1 parent
4c7b6902e3
commit
0a7a69ec54
1 file changed
+1
-1
@@ -325,7 +325,7 @@ describe('readByteRange', () => {
|
||||
|
||||
it('reads a window from the middle of a file larger than the window', async () => {
|
||||
await writeFile(join(dir, 'ramp.bin'), ramp)
|
||||
const window = await fs.readByteRange(await fs.resolve('ramp.bin'), { offset: 100, length: 4 })
|
||||
const window = await fs.readByteRange(await fs.resolve('ramp.bin'), { offset: 100, length: 4 }, new AbortController().signal)
|
||||
expect([...window]).toEqual([100, 101, 102, 103])
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user