Skip to content

Commit

Permalink
Speed up glob dir events test
Browse files Browse the repository at this point in the history
simplify waitFor conditions
  • Loading branch information
es128 committed Dec 3, 2015
1 parent d9a4491 commit 231f8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ function runTests(baseopts) {
spy.withArgs('addDir').should.have.been.calledOnce;
fs.mkdirSync(deepDir, 0x1ed);
fs.writeFileSync(deepFile, Date.now());
waitFor([spy.withArgs('addDir', deepDir), spy.withArgs('add', deepFile)], function() {
waitFor([[spy.withArgs('addDir'), 2], spy.withArgs('add', deepFile)], function() {
if (win32Polling) return done();
spy.should.have.been.calledWith('addDir', deepDir);
fs.unlinkSync(deepFile);
Expand Down

0 comments on commit 231f8c5

Please sign in to comment.