mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: fix tls-client-default-ciphers
The test execution should not depend on the servers running locally. fix #7832
This commit is contained in:
1 file changed
+3
-1
@@ -20,6 +20,7 @@
|
||||
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
var assert = require('assert');
|
||||
var common = require('../common');
|
||||
var tls = require('tls');
|
||||
|
||||
function test1() {
|
||||
@@ -27,7 +28,8 @@ function test1() {
|
||||
tls.createSecureContext = function(options) {
|
||||
ciphers = options.ciphers
|
||||
}
|
||||
tls.connect(443);
|
||||
var s = tls.connect(common.PORT);
|
||||
s.destroy();
|
||||
assert.equal(ciphers, tls.DEFAULT_CIPHERS);
|
||||
}
|
||||
test1();
|
||||
Reference in new issue
Block a user