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 Jul 13, 2023
1 parent 97d19da commit ae3e5c8
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 ae3e5c8

Please sign in to comment.