Skip to content

Commit

Permalink
increase sleep to remove race
Browse files Browse the repository at this point in the history
  • Loading branch information
carlydf committed Oct 11, 2024
1 parent a95d0fb commit 138c8d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/quotas/clocked_rate_limiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func TestClockedRateLimiter_Wait_Recycle(t *testing.T) {
asserted = true
}()
// wait for rl.Wait() to start and get to the select statement
time.Sleep(10 * time.Millisecond) // nolint
time.Sleep(time.Second) // nolint

// once a waiter exists, recycle the token instead of advancing time
rl.RecycleToken()
Expand Down Expand Up @@ -200,7 +200,7 @@ func TestClockedRateLimiter_WaitN_NoRecycle(t *testing.T) {
asserted = true
}()
// wait for rl.Wait() to start and get to the select statement
time.Sleep(10 * time.Millisecond) // nolint
time.Sleep(time.Second) // nolint

// once a waiter exists, recycle the token instead of advancing time
rl.RecycleToken()
Expand Down

0 comments on commit 138c8d9

Please sign in to comment.