test: use platformTimeout() in more places
authorBrian White <mscdex@mscdex.net>
Tue, 22 Dec 2015 17:43:44 +0000 (12:43 -0500)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:27 +0000 (11:52 -0800)
Without these changes, the pi1-raspbian-wheezy CI node was timing
out on these tests.

PR-URL: https://github.com/nodejs/node/pull/4387
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
test/parallel/test-dgram-udp4.js
test/parallel/test-http-1.0.js

index f81dec3..5b1ede4 100644 (file)
@@ -52,4 +52,4 @@ server.bind(server_port);
 
 timer = setTimeout(function() {
   throw new Error('Timeout');
-}, 200);
+}, common.platformTimeout(200));
index 9989c9b..f9c865f 100644 (file)
@@ -19,7 +19,7 @@ function test(handler, request_generator, response_validator) {
     server.close();
     response_validator(server_response, client_got_eof, true);
   }
-  var timer = setTimeout(cleanup, 1000);
+  var timer = setTimeout(cleanup, common.platformTimeout(1000));
   process.on('exit', cleanup);
 
   server.listen(port);