Permalink
Browse files

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.
  • Loading branch information...
1 parent 11770bf commit 6aa755070a5d89f5adeb6d53e6eea6fbf49a6bb7 @isaacs isaacs committed Mar 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/simple/test-eio-race.js
View
4 test/simple/test-eio-race.js
@@ -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);
});

1 comment on commit 6aa7550

@AndreasMadsen
Node.js Foundation member

I have been able to reproduce the failure on this setup:
VMware Fussion 4.1.1 (536016)
Linux ubuntu 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:44:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
The VM is running with 1 core and 1024 MB ram

There is almost nothing installed on the VM. The test result was this: https://gist.github.com/2251429

Please sign in to comment.