Browse Source

test: fix tls-client-default-ciphers

The test execution should not depend on the servers running locally.

fix #7832
archived-io.js-v0.10
Fedor Indutny 11 years ago
parent
commit
56d767fd69
No known key found for this signature in database GPG Key ID: FB0E1095B1797999
  1. 4
      test/simple/test-tls-client-default-ciphers.js

4
test/simple/test-tls-client-default-ciphers.js

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

Loading…
Cancel
Save