Skip to content

Commit

Permalink
Attempt to fix timing issue in debounce test
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Aug 18, 2023
1 parent 759470b commit a47755c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/cli/watcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ describe("watches files", () => {
setTimeout(() => {
expect(count).toBe(1);
w.watchers[0].emit("change", "rename", base);
setTimeout(() => {
expect(count).toBe(2);
w.close().then(done);
}, Watcher.interval * 0.5);
}, Watcher.interval * 1.5);
setTimeout(() => {
expect(count).toBe(2);
w.close().then(done);
}, Watcher.interval * 2);
});

it("closes after an error", done => {
Expand Down

0 comments on commit a47755c

Please sign in to comment.