Skip to content

Commit

Permalink
fixup! test: assert on client and server side seperately
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-github committed Jan 14, 2019
1 parent 45b8ddd commit d4bfbfb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parallel/test-tls-min-max-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ function test(cmin, cmax, cprot, smin, smax, sprot, proto, cerr, serr) {
console.log('server', pair.server.err ? pair.server.err.code : undefined);
if (cerr) {
assert(pair.client.err);
// Accept these codes as aliases, the one reported depends on the
// OpenSSL version.
if (cerr === 'ERR_SSL_UNSUPPORTED_PROTOCOL' &&
pair.client.err.code === 'ERR_SSL_VERSION_TOO_LOW')
cerr = 'ERR_SSL_VERSION_TOO_LOW';
assert.strictEqual(pair.client.err.code, cerr);
}
if (serr) {
Expand Down

0 comments on commit d4bfbfb

Please sign in to comment.