From f9b226c1c1e5bfbf355f9fabe03e50333676cc05 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Wed, 29 Apr 2015 10:55:55 +1000 Subject: [PATCH] test: extend timeouts for ARMv6 Based on tests running on original Raspberry Pi PR-URL: https://github.com/iojs/io.js/pull/1554 Reviewed-By: Roman Reiss --- test/common.js | 2 +- test/parallel/test-child-process-fork-net2.js | 2 +- test/parallel/test-debug-signal-cluster.js | 2 +- test/sequential/test-next-tick-error-spin.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/common.js b/test/common.js index 1e85d3db33be48..ec0b387328d6b7 100644 --- a/test/common.js +++ b/test/common.js @@ -184,7 +184,7 @@ exports.platformTimeout = function(ms) { return ms; if (process.config.variables.arm_version === '6') - return 6 * ms; // ARMv6 + return 7 * ms; // ARMv6 return 2 * ms; // ARMv7 and up. }; diff --git a/test/parallel/test-child-process-fork-net2.js b/test/parallel/test-child-process-fork-net2.js index c69fe84eadd787..150e9cfc4544e9 100644 --- a/test/parallel/test-child-process-fork-net2.js +++ b/test/parallel/test-child-process-fork-net2.js @@ -150,7 +150,7 @@ if (process.argv[2] === 'child') { }; var min = 190; - var max = common.platformTimeout(1500); + var max = common.platformTimeout(2000); process.on('exit', function() { assert.equal(disconnected, count); assert.equal(connected, count); diff --git a/test/parallel/test-debug-signal-cluster.js b/test/parallel/test-debug-signal-cluster.js index c8b03875908a5a..772ee6f1e6f454 100644 --- a/test/parallel/test-debug-signal-cluster.js +++ b/test/parallel/test-debug-signal-cluster.js @@ -51,7 +51,7 @@ function onNoMoreLines() { setTimeout(function testTimedOut() { assert(false, 'test timed out.'); -}, common.platformTimeout(3000)).unref(); +}, common.platformTimeout(4000)).unref(); process.on('exit', function onExit() { // Kill processes in reverse order to avoid timing problems on Windows where diff --git a/test/sequential/test-next-tick-error-spin.js b/test/sequential/test-next-tick-error-spin.js index c8011115c04f0e..a150ea7a589f63 100644 --- a/test/sequential/test-next-tick-error-spin.js +++ b/test/sequential/test-next-tick-error-spin.js @@ -8,7 +8,7 @@ if (process.argv[2] !== 'child') { }); var timer = setTimeout(function() { throw new Error('child is hung'); - }, 3000); + }, common.platformTimeout(3000)); child.on('exit', function(code) { console.error('ok'); assert(!code);