Skip to content

Commit 54defc0

Browse files
committed
test: simplify test-tls-client-default-ciphers
Ref: #12376
1 parent 342c5f9 commit 54defc0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
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)