From: Rod Vagg Date: Wed, 29 Apr 2015 00:55:55 +0000 (+1000) Subject: test: extend timeouts for ARMv6 X-Git-Tag: v2.0.0~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9b226c1c1e5bfbf355f9fabe03e50333676cc05;p=platform%2Fupstream%2Fnodejs.git 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 --- diff --git a/test/common.js b/test/common.js index 1e85d3d..ec0b387 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 c69fe84..150e9cf 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 c8b0387..772ee6f 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 c801111..a150ea7 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);