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
isaacs 2012-03-29 08:41:04 -07:00
parent 11770bf5e2
commit 6aa755070a
1 changed files with 2 additions and 2 deletions

View File

@ -36,18 +36,17 @@ function tryToKillEventLoop() {
if (err) {
throw new Exception('first fs.stat failed');
} else {
console.log('first fs.stat succeeded ...');
fs.stat(__filename, function(err) {
if (err) {
throw new Exception('second fs.stat failed');
} else {
console.log('second fs.stat succeeded ...');
console.log('could not kill event loop, retrying...');
setTimeout(function() {
if (--count) {
tryToKillEventLoop();
} else {
console.log('done trying to kill event loop');
process.exit(0);
}
}, 1);
@ -81,5 +80,6 @@ fs.open(filename, 'r', 0666, function(err, fd) {
tryToKillEventLoop();
process.on('exit', function() {
console.log('done with test');
assert.ok(pos > 10000);
});