Skip to content

Commit 6540e99

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 605a02b commit 6540e99

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
@@ -16,11 +16,8 @@ function test1() {
1616
throw new Done();
1717
};
1818

19-
try {
20-
tls.connect(common.PORT);
21-
} catch (e) {
22-
assert(e instanceof Done);
23-
}
19+
assert.throws(tls.connect, Done);
20+
2421
assert.strictEqual(ciphers, tls.DEFAULT_CIPHERS);
2522
}
2623
test1();

0 commit comments

Comments
 (0)