Skip to content

Commit

Permalink
Use the test to assert this.child.killed rather than checking time di…
Browse files Browse the repository at this point in the history
…fference. (#2609) (#2612)
  • Loading branch information
sainthkh authored and wbinnssmith committed Mar 14, 2019
1 parent 9cf1b22 commit 5cd6bab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/core/watcher/test/fswatcher.js
Expand Up @@ -23,10 +23,7 @@ describe('Watcher', function() {
assert(watcher.child);
assert(watcher.ready);

let childDeadPromise = new Promise(resolve =>
watcher.once('childDead', resolve)
);
await watcher.stop();
await childDeadPromise;
assert(watcher.child.killed);
});
});

0 comments on commit 5cd6bab

Please sign in to comment.