Release 0.0.4
This commit is contained in:
1 parent
7856725c72
commit
3ae47dde8e
10 files changed
+56
-26
No files matched your search
@@ -84,3 +84,12 @@ test('app cancellation errors the browser response and cancels pending source re
|
||||
assert.equal(canceled, true);
|
||||
assert.equal(w.messages.at(-1)?.type, 'error');
|
||||
});
|
||||
|
||||
test('download worker accepts sizes above 64 GiB without allocating the file', async () => {
|
||||
const w = worker();
|
||||
const size = 64 * 1024 ** 3 + 1;
|
||||
w.start(new ReadableStream(), size);
|
||||
const response = await w.fetch();
|
||||
assert.equal(response.headers.get('Content-Length'), String(size));
|
||||
await response.body!.cancel();
|
||||
});
|
||||
Reference in new issue
Block a user