Skip to content

Commit

Permalink
[fix test] try/catch around test/fixtures/*
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jan 13, 2012
1 parent 80f9bec commit 6bfe071
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/monitor/watch-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ vows.describe('forever/monitor/watch').addBatch({
'when file is removed': {
topic: function (child) {
child.once('restart', this.callback);
fs.unlinkSync(path.join(__dirname, '..', 'fixtures', 'watch', 'removeMe'));
try { fs.unlinkSync(path.join(__dirname, '..', 'fixtures', 'watch', 'removeMe')) }
catch (ex) { }
},
'restart the script': function (child, _) {
fs.writeFileSync(path.join(__dirname, '..', 'fixtures', 'watch', 'removeMe'), '');
Expand All @@ -68,5 +69,4 @@ vows.describe('forever/monitor/watch').addBatch({
}
}
}
}).export(module);

}).export(module);

0 comments on commit 6bfe071

Please sign in to comment.