Skip to content

Commit

Permalink
fix: Flakey TimerSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Jul 2, 2022
1 parent 48471a7 commit 97feae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec/TimerSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ describe('A Timer', () => {
});
scene.add(timer);
timer.start();
scene.update(engine, 100);
expect(timer.complete).toBeFalse();
scene.update(engine, 100);
expect(timer.interval).toBeGreaterThanOrEqual(100);
expect(timer.interval).toBeLessThanOrEqual(300);
});
Expand Down

0 comments on commit 97feae4

Please sign in to comment.