summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRod Vagg <rod@vagg.org>2015-04-29 10:55:55 +1000
committerRod Vagg <rod@vagg.org>2015-04-29 19:28:11 +1000
commitf9b226c1c1e5bfbf355f9fabe03e50333676cc05 (patch)
tree91d4ac33f804bfb2afa041c1d99779cf21e935c5 /test
parentf9c681cf627caf89b5c7eaacf154fdefb747c7e0 (diff)
downloadandroid-node-v8-f9b226c1c1e5bfbf355f9fabe03e50333676cc05.tar.gz
android-node-v8-f9b226c1c1e5bfbf355f9fabe03e50333676cc05.tar.bz2
android-node-v8-f9b226c1c1e5bfbf355f9fabe03e50333676cc05.zip
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 <me@silverwind.io>
Diffstat (limited to 'test')
-rw-r--r--test/common.js2
-rw-r--r--test/parallel/test-child-process-fork-net2.js2
-rw-r--r--test/parallel/test-debug-signal-cluster.js2
-rw-r--r--test/sequential/test-next-tick-error-spin.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/common.js b/test/common.js
index 1e85d3db33..ec0b387328 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 c69fe84ead..150e9cfc45 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 c8b0387590..772ee6f1e6 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 c8011115c0..a150ea7a58 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);