Skip to content

Commit

Permalink
Fix polling-mode timing of new test
Browse files Browse the repository at this point in the history
  • Loading branch information
es128 committed Feb 12, 2015
1 parent 2f29454 commit e2f8fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,11 @@ function runTests (options) {
var watcher = chokidar.watch(fixturesPath, options)
.on('all', spy)
.on('ready', readySpy);
delay(function() {
ddelay(function() {
readySpy.should.have.been.calledOnce;
spy.should.have.been.calledWith('add', filePath);
fs.writeFileSync(filePath, 'c');
ddelay(function() {
delay(function() {
fs.unlinkSync(filePath);
watcher.close();
spy.should.have.been.calledWith('change', filePath);
Expand Down

0 comments on commit e2f8fb9

Please sign in to comment.