test: double timeout in tls-wrap-timeout.js
authorFedor Indutny <fedor@indutny.com>
Thu, 19 Mar 2015 03:15:06 +0000 (20:15 -0700)
committerFedor Indutny <fedor@indutny.com>
Thu, 19 Mar 2015 04:47:03 +0000 (21:47 -0700)
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>
test/parallel/test-tls-wrap-timeout.js

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