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:
Jon Moss 2017-08-18 16:59:10 -04:00 committed by James M Snell
parent 9fc58afa6d
commit d86eb5cadf

View File

@ -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();