We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82200bd commit c2c8fd5Copy full SHA for c2c8fd5
test/http2.js
@@ -402,11 +402,16 @@ test(
402
}
403
})
404
} catch (error) {
405
- t.equal(
406
- error.message,
407
- 'Client network socket disconnected before secure TLS connection was established'
+ t.ok(
+ error.message === 'Client network socket disconnected before secure TLS connection was established' ||
+ error.message.includes('SSL routines:ssl3_read_bytes:tlsv1 alert no application protocol'),
408
+ `Error message should be as expected: ${error.message}`
409
+ )
410
411
+ error.code === 'ECONNRESET' ||
412
+ error.code === 'ERR_SSL_TLSV1_ALERT_NO_APPLICATION_PROTOCOL',
413
+ `Error code should be as expected: ${error.code}`
414
)
- t.equal(error.code, 'ECONNRESET')
415
416
417
0 commit comments