Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
test: extend timeouts for ARMv6
Browse files Browse the repository at this point in the history
Based on tests running on original Raspberry Pi

PR-URL: nodejs/node#1554
PORT-PR-URL: nodejs/node#1560
PORT-FROM: v2.x / f9b226c
Reviewed-By: Roman Reiss <me@silverwind.io>
  • Loading branch information
rvagg authored and Fishrock123 committed May 14, 2015
1 parent 4030545 commit 32a6dbc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
};
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-child-process-fork-net2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-debug-signal-cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-next-tick-error-spin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 32a6dbc

Please sign in to comment.