Skip to content

Commit dc0d2d6

Browse files
maclover7MylesBorins
authored andcommitted
test: simplify test-tls-client-default-ciphers
PR-URL: #14928 Ref: #12376 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent be2c711 commit dc0d2d6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/parallel/test-tls-client-default-ciphers.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@ function test1() {
3737
throw new Done();
3838
};
3939

40-
try {
41-
tls.connect(common.PORT);
42-
} catch (e) {
43-
assert(e instanceof Done);
44-
}
40+
assert.throws(tls.connect, Done);
41+
4542
assert.strictEqual(ciphers, tls.DEFAULT_CIPHERS);
4643
}
4744
test1();

0 commit comments

Comments
 (0)