Skip to content

Commit

Permalink
Try to fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Apr 3, 2019
1 parent 7bfd263 commit c949c43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test.js
Expand Up @@ -200,6 +200,8 @@ const runTests = function(baseopts) {
});
});
it('should emit thirtythree `add` events when thirtythree files were added in nine directories', async () => {
watcher.close();

const test1Path = getFixturePath('add1.txt');
const testb1Path = getFixturePath('b/add1.txt');
const testc1Path = getFixturePath('c/add1.txt');
Expand Down Expand Up @@ -242,7 +244,8 @@ const runTests = function(baseopts) {
fs.mkdirSync(getFixturePath('h'), PERM_ARR);
fs.mkdirSync(getFixturePath('i'), PERM_ARR);

const spy = await aspy(watcher, 'add', null, true);
watcher2 = stdWatcher().on('ready', readySpy).on('raw', rawSpy);
const spy = await aspy(watcher2, 'add', null, true);

await write(test1Path, Date.now());
await write(test2Path, Date.now());
Expand Down

0 comments on commit c949c43

Please sign in to comment.