We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b75cf0 commit 39b9cd1Copy full SHA for 39b9cd1
1 file changed
test/http2.js
@@ -1527,7 +1527,7 @@ test('#3046 - GOAWAY Frame', async t => {
1527
t.strictEqual(response.headers['x-custom-h2'], 'hello')
1528
t.strictEqual(response.statusCode, 200)
1529
1530
- t.rejects(response.body.text(), {
+ await t.rejects(response.body.text(), {
1531
message: 'HTTP/2: "GOAWAY" frame received with code 0',
1532
code: 'UND_ERR_SOCKET'
1533
})
@@ -1748,9 +1748,11 @@ test('Should handle http2 stream timeout', async t => {
1748
body: stream
1749
1750
1751
- t.rejects(res.body.text(), {
+ await t.rejects(res.body.text(), {
1752
message: 'HTTP/2: "stream timeout after 50"'
1753
1754
+
1755
+ await t.completed
1756
1757
1758
test('Should handle http2 trailers', async t => {
0 commit comments