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>
This commit is contained in:
parent
f9c681cf62
commit
f9b226c1c1
@ -184,7 +184,7 @@ exports.platformTimeout = function(ms) {
|
|||||||
return ms;
|
return ms;
|
||||||
|
|
||||||
if (process.config.variables.arm_version === '6')
|
if (process.config.variables.arm_version === '6')
|
||||||
return 6 * ms; // ARMv6
|
return 7 * ms; // ARMv6
|
||||||
|
|
||||||
return 2 * ms; // ARMv7 and up.
|
return 2 * ms; // ARMv7 and up.
|
||||||
};
|
};
|
||||||
|
@ -150,7 +150,7 @@ if (process.argv[2] === 'child') {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var min = 190;
|
var min = 190;
|
||||||
var max = common.platformTimeout(1500);
|
var max = common.platformTimeout(2000);
|
||||||
process.on('exit', function() {
|
process.on('exit', function() {
|
||||||
assert.equal(disconnected, count);
|
assert.equal(disconnected, count);
|
||||||
assert.equal(connected, count);
|
assert.equal(connected, count);
|
||||||
|
@ -51,7 +51,7 @@ function onNoMoreLines() {
|
|||||||
|
|
||||||
setTimeout(function testTimedOut() {
|
setTimeout(function testTimedOut() {
|
||||||
assert(false, 'test timed out.');
|
assert(false, 'test timed out.');
|
||||||
}, common.platformTimeout(3000)).unref();
|
}, common.platformTimeout(4000)).unref();
|
||||||
|
|
||||||
process.on('exit', function onExit() {
|
process.on('exit', function onExit() {
|
||||||
// Kill processes in reverse order to avoid timing problems on Windows where
|
// Kill processes in reverse order to avoid timing problems on Windows where
|
||||||
|
@ -8,7 +8,7 @@ if (process.argv[2] !== 'child') {
|
|||||||
});
|
});
|
||||||
var timer = setTimeout(function() {
|
var timer = setTimeout(function() {
|
||||||
throw new Error('child is hung');
|
throw new Error('child is hung');
|
||||||
}, 3000);
|
}, common.platformTimeout(3000));
|
||||||
child.on('exit', function(code) {
|
child.on('exit', function(code) {
|
||||||
console.error('ok');
|
console.error('ok');
|
||||||
assert(!code);
|
assert(!code);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user