projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61baefc
)
test: fix tls-client-default-ciphers
author
Fedor Indutny
<fedor@indutny.com>
Wed, 25 Jun 2014 07:16:08 +0000
(11:16 +0400)
committer
Fedor Indutny
<fedor@indutny.com>
Wed, 25 Jun 2014 07:17:59 +0000
(11:17 +0400)
The test execution should not depend on the servers running locally.
fix #7832
test/simple/test-tls-client-default-ciphers.js
patch
|
blob
|
history
diff --git
a/test/simple/test-tls-client-default-ciphers.js
b/test/simple/test-tls-client-default-ciphers.js
index
83f8f86
..
0a3c470
100644
(file)
--- a/
test/simple/test-tls-client-default-ciphers.js
+++ b/
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();