From 6aa755070a5d89f5adeb6d53e6eea6fbf49a6bb7 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 29 Mar 2012 08:41:04 -0700 Subject: [PATCH] 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. --- test/simple/test-eio-race.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simple/test-eio-race.js b/test/simple/test-eio-race.js index cbe95c65b4d..558d09a9cff 100644 --- a/test/simple/test-eio-race.js +++ b/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); });