Skip to content

Commit 0855cd4

Browse files
committed
add await t.completed
1 parent f84e78b commit 0855cd4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/fetch/encoding.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ test('content-encoding header is case-iNsENsITIve', async (t) => {
3232

3333
assert.strictEqual(await response.text(), text)
3434
assert.strictEqual(response.headers.get('content-encoding'), contentCodings)
35+
36+
await t.completed
3537
})
3638

3739
test('response decompression according to content-encoding should be handled in a correct order', async (t) => {
@@ -57,6 +59,8 @@ test('response decompression according to content-encoding should be handled in
5759
const response = await fetch(`http://localhost:${server.address().port}`)
5860

5961
assert.strictEqual(await response.text(), text)
62+
63+
await t.completed
6064
})
6165

6266
test('should decompress zstandard response',
@@ -84,4 +88,6 @@ test('should decompress zstandard response',
8488
assert.strictEqual(await response.text(), text)
8589
assert.strictEqual(response.headers.get('content-encoding'), contentCodings)
8690
assert.strictEqual(response.headers.get('content-type'), 'text/plain')
91+
92+
await t.completed
8793
})

0 commit comments

Comments
 (0)