Skip to content

Commit

Permalink
Increase resolution used for scheduled testing as it fails sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx committed Sep 24, 2024
1 parent f072cb2 commit 10dd6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scheduled/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ var (
testNowFn = func() time.Time { return testNow }

// set resolution lower to make tests more accurate, but the clock won't be
// perfect so 2ms seems a reasonable trade-off
resolution = 2 * time.Millisecond
// perfect so 3ms seems a reasonable trade-off
resolution = 3 * time.Millisecond
// set period higher to make tests more accurate, but that will make them
// slower
period = 20 * resolution
Expand Down

0 comments on commit 10dd6e1

Please sign in to comment.