Skip to content

Commit

Permalink
test: simplify test-tls-client-default-ciphers
Browse files Browse the repository at this point in the history
PR-URL: #14928
Ref: #12376
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
maclover7 authored and MylesBorins committed Sep 10, 2017
1 parent be2c711 commit dc0d2d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/parallel/test-tls-client-default-ciphers.js
Expand Up @@ -37,11 +37,8 @@ function test1() {
throw new Done();
};

try {
tls.connect(common.PORT);
} catch (e) {
assert(e instanceof Done);
}
assert.throws(tls.connect, Done);

assert.strictEqual(ciphers, tls.DEFAULT_CIPHERS);
}
test1();

0 comments on commit dc0d2d6

Please sign in to comment.