Skip to content

Commit

Permalink
pkg/ratelimit: make TestConcurrencyLimiterAcquire stable (#8169)
Browse files Browse the repository at this point in the history
ref #7969

Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp committed May 13, 2024
1 parent 204dcbb commit 5d2b773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ratelimit/concurrency_limiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ func TestConcurrencyLimiterAcquire(t *testing.T) {
}
wg.Wait()
// We should have 20 tasks running concurrently, so it should take at least 50ms to complete
require.Greater(t, time.Since(start).Milliseconds(), int64(50))
require.GreaterOrEqual(t, time.Since(start).Milliseconds(), int64(50))
require.Equal(t, int64(100), sum)
}

0 comments on commit 5d2b773

Please sign in to comment.