mirror of https://github.com/nodejs/node.git
More logging in simple/test-eio-race
Travis-CI is failing on this test repeatedly, but other Linux systems seem to be fine with it. Alter the logging so it's more clear which part is timing out.pull/24503/head
parent
11770bf5e2
commit
6aa755070a
|
@ -36,18 +36,17 @@ function tryToKillEventLoop() {
|
||||||
if (err) {
|
if (err) {
|
||||||
throw new Exception('first fs.stat failed');
|
throw new Exception('first fs.stat failed');
|
||||||
} else {
|
} else {
|
||||||
console.log('first fs.stat succeeded ...');
|
|
||||||
fs.stat(__filename, function(err) {
|
fs.stat(__filename, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
throw new Exception('second fs.stat failed');
|
throw new Exception('second fs.stat failed');
|
||||||
} else {
|
} else {
|
||||||
console.log('second fs.stat succeeded ...');
|
|
||||||
console.log('could not kill event loop, retrying...');
|
console.log('could not kill event loop, retrying...');
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if (--count) {
|
if (--count) {
|
||||||
tryToKillEventLoop();
|
tryToKillEventLoop();
|
||||||
} else {
|
} else {
|
||||||
|
console.log('done trying to kill event loop');
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
}, 1);
|
}, 1);
|
||||||
|
@ -81,5 +80,6 @@ fs.open(filename, 'r', 0666, function(err, fd) {
|
||||||
tryToKillEventLoop();
|
tryToKillEventLoop();
|
||||||
|
|
||||||
process.on('exit', function() {
|
process.on('exit', function() {
|
||||||
|
console.log('done with test');
|
||||||
assert.ok(pos > 10000);
|
assert.ok(pos > 10000);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue