From 29804e00adff609ad84c730622fc37da87e2c20f Mon Sep 17 00:00:00 2001 From: Brian White Date: Tue, 22 Dec 2015 12:43:44 -0500 Subject: [PATCH] test: use platformTimeout() in more places 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 Reviewed-By: Colin Ihrig --- test/parallel/test-dgram-udp4.js | 2 +- test/parallel/test-http-1.0.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-dgram-udp4.js b/test/parallel/test-dgram-udp4.js index f81dec3..5b1ede4 100644 --- a/test/parallel/test-dgram-udp4.js +++ b/test/parallel/test-dgram-udp4.js @@ -52,4 +52,4 @@ server.bind(server_port); timer = setTimeout(function() { throw new Error('Timeout'); -}, 200); +}, common.platformTimeout(200)); diff --git a/test/parallel/test-http-1.0.js b/test/parallel/test-http-1.0.js index 9989c9b..f9c865f 100644 --- a/test/parallel/test-http-1.0.js +++ b/test/parallel/test-http-1.0.js @@ -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); -- 2.7.4