File: increase-timeouts.patch

package info (click to toggle)
node-websocket 1.0.33%2B~cs9.0.11-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 752 kB
  • sloc: javascript: 3,786; ansic: 176; makefile: 16; sh: 7
file content (35 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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) {