Skip to content

Commit

Permalink
Check to allow timer test jitter.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcornwell committed Jul 14, 2024
1 parent 01f9420 commit 10cbff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emu/timer/timer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestTimer(t *testing.T) {
test.counter = 0
timer.Start()
time.Sleep(2 * time.Second)
if test.counter != 300 {
if test.counter < 299 || test.counter > 301 {
t.Errorf("Expected 300 ticks during a second got: %d", test.counter)
}
timer.Shutdown()
Expand Down

0 comments on commit 10cbff7

Please sign in to comment.