Skip to content

Commit d4bfbfb

Browse files
committed
fixup! test: assert on client and server side seperately
1 parent 45b8ddd commit d4bfbfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-tls-min-max-version.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ function test(cmin, cmax, cprot, smin, smax, sprot, proto, cerr, serr) {
3737
console.log('server', pair.server.err ? pair.server.err.code : undefined);
3838
if (cerr) {
3939
assert(pair.client.err);
40+
// Accept these codes as aliases, the one reported depends on the
41+
// OpenSSL version.
42+
if (cerr === 'ERR_SSL_UNSUPPORTED_PROTOCOL' &&
43+
pair.client.err.code === 'ERR_SSL_VERSION_TOO_LOW')
44+
cerr = 'ERR_SSL_VERSION_TOO_LOW';
4045
assert.strictEqual(pair.client.err.code, cerr);
4146
}
4247
if (serr) {

0 commit comments

Comments
 (0)