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 devongovett committed Feb 2, 2019
1 parent 791b4b8 commit 32791e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/watcher/test/fswatcher.js
Expand Up @@ -25,8 +25,7 @@ describe('Watcher', function() {
assert(!!watcher.child);
assert(watcher.ready);

let time = Date.now();
await watcher.stop();
assert.notEqual(time, Date.now());
assert(watcher.child.killed);
});
});

0 comments on commit 32791e3

Please sign in to comment.