test: simplify test-tls-client-default-ciphers
PR-URL: https://github.com/nodejs/node/pull/14928 Ref: https://github.com/nodejs/node/issues/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>
This commit is contained in:
parent
9fc58afa6d
commit
d86eb5cadf
@ -37,11 +37,8 @@ function test1() {
|
|||||||
throw new Done();
|
throw new Done();
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
assert.throws(tls.connect, Done);
|
||||||
tls.connect(common.PORT);
|
|
||||||
} catch (e) {
|
|
||||||
assert(e instanceof Done);
|
|
||||||
}
|
|
||||||
assert.strictEqual(ciphers, tls.DEFAULT_CIPHERS);
|
assert.strictEqual(ciphers, tls.DEFAULT_CIPHERS);
|
||||||
}
|
}
|
||||||
test1();
|
test1();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user