Skip to content

Commit 584fe1f

Browse files
committed
Use async close in tests.
1 parent a64b70b commit 584fe1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const runTests = (baseopts) => {
198198
});
199199
});
200200
it.skip('should emit thirtythree `add` events when thirtythree files were added in nine directories', async () => {
201-
watcher.close();
201+
await watcher.close();
202202

203203
const test1Path = getFixturePath('add1.txt');
204204
const testb1Path = getFixturePath('b/add1.txt');
@@ -1950,7 +1950,7 @@ const runTests = (baseopts) => {
19501950
const watcher = chokidar_watch(currentDir, options);
19511951
watcher.once('add', () => {
19521952
watcher.once('add', async () => {
1953-
watcher.on('add', spy).close();
1953+
await watcher.on('add', spy).close();
19541954
await delay(900);
19551955
await write(getFixturePath('add.txt'), Date.now());
19561956
spy.should.not.have.been.called;

0 commit comments

Comments
 (0)