Description: increase timeouts in tests for build servers
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2019-01-25
Forwarded: https://github.com/theturtle32/WebSocket-Node/issues/346
--- a/test/unit/dropBeforeAccept.js
+++ b/test/unit/dropBeforeAccept.js
@@ -41,7 +41,7 @@
           stopServer();
         });
         
-      }, 500);
+      }, 5000);
     });
     
     var client = new WebSocketClient();
@@ -57,7 +57,7 @@
     setTimeout(function() {
       // Bail on the connection before we hear back from the server.
       client.abort();
-    }, 250);
+    }, 2500);
     
   });
 });
--- a/test/unit/request.js
+++ b/test/unit/request.js
@@ -77,7 +77,7 @@
     
     var timer = setTimeout(function() {
       t.fail('Timeout waiting for client event');
-    }, 2000);
+    }, 20000);
     
     client.connect('ws://localhost:64321/', 'some_protocol_here');
     client.on('connect', function(connection) {
