test: extend timeouts for ARMv6
authorRod Vagg <rod@vagg.org>
Wed, 29 Apr 2015 00:55:55 +0000 (10:55 +1000)
committerRod Vagg <rod@vagg.org>
Wed, 29 Apr 2015 09:28:11 +0000 (19:28 +1000)
Based on tests running on original Raspberry Pi

PR-URL: https://github.com/iojs/io.js/pull/1554
Reviewed-By: Roman Reiss <me@silverwind.io>
test/common.js
test/parallel/test-child-process-fork-net2.js
test/parallel/test-debug-signal-cluster.js
test/sequential/test-next-tick-error-spin.js

index 1e85d3d..ec0b387 100644 (file)
@@ -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.
 };
index c69fe84..150e9cf 100644 (file)
@@ -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);
index c8b0387..772ee6f 100644 (file)
@@ -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
index c801111..a150ea7 100644 (file)
@@ -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);