Skip to content

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#1554
Reviewed-By: Roman Reiss <me@silverwind.io>
  • Loading branch information
rvagg authored and Fishrock123 committed Apr 29, 2015
1 parent 120cf35 commit fe08db9
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 fe08db9

Please sign in to comment.