Skip to content

Commit

Permalink
Fix flaky ratelimiter test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhalterman committed Apr 22, 2024
1 parent cfcfc49 commit 3a160dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ratelimiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestRateLimiterMaxWaitTimeExceeded(t *testing.T) {
limiter := ratelimiter.SmoothBuilderWithMaxRate[any](10 * time.Millisecond).Build()

// When / Then
limiter.AcquirePermitsWithMaxWait(nil, 50, time.Minute) // limiter should now be well over its max permits
assert.NoError(t, limiter.AcquirePermitsWithMaxWait(nil, 50, time.Minute)) // limiter should now be well over its max permits
testutil.Test[any](t).
With(limiter).
Run(testutil.RunFn(nil)).
Expand Down

0 comments on commit 3a160dd

Please sign in to comment.