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 211cc27 commit c8dc113Copy full SHA for c8dc113
1 file changed
test/http2.js
@@ -334,23 +334,15 @@ test(
334
335
after(() => server.close())
336
after(() => client.close())
337
- t = tspl(t, { plan: 2 })
+ t = tspl(t, { plan: 1 })
338
339
- try {
340
- await client.request({
341
- path: '/',
342
- method: 'GET',
343
- headers: {
344
- 'x-my-header': 'foo'
345
- }
346
- })
347
- } catch (error) {
348
- t.strictEqual(
349
- error.message,
350
- 'Client network socket disconnected before secure TLS connection was established'
351
- )
352
- t.strictEqual(error.code, 'ECONNRESET')
353
+ await t.rejects(client.request({
+ path: '/',
+ method: 'GET',
+ headers: {
+ 'x-my-header': 'foo'
+ }
+ }))
354
}
355
)
356
0 commit comments