Browse Source

test: double timeout in tls-wrap-timeout.js

The test is timing dependent, ensure that it won't fail on the busy CI
boxes.

Fix: https://github.com/iojs/io.js/issues/1200
PR-URL: https://github.com/iojs/io.js/pull/1201
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
v1.8.0-commit
Fedor Indutny 10 years ago
parent
commit
3038b8ee6a
  1. 6
      test/parallel/test-tls-wrap-timeout.js

6
test/parallel/test-tls-wrap-timeout.js

@ -21,13 +21,13 @@ var server = tls.createServer(options, function(c) {
setTimeout(function() { setTimeout(function() {
c.destroy(); c.destroy();
server.close(); server.close();
}, 75); }, 150);
}, 75); }, 150);
}); });
server.listen(common.PORT, function() { server.listen(common.PORT, function() {
var socket = net.connect(common.PORT, function() { var socket = net.connect(common.PORT, function() {
socket.setTimeout(120, assert.fail); socket.setTimeout(240, assert.fail);
var tsocket = tls.connect({ var tsocket = tls.connect({
socket: socket, socket: socket,

Loading…
Cancel
Save