Skip to content

Commit

Permalink
add 100 ms to time.Sleep() for ci test to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
da440dil committed Dec 17, 2020
1 parent 794a98a commit 05bd555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixedwindow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestFixedWindow(t *testing.T) {
require.Equal(t, 50, result.Counter())
require.True(t, result.TTL() >= msToDuration(0) && result.TTL() <= size)

time.Sleep(result.TTL()) // wait for the next window to start
time.Sleep(result.TTL() + 100*time.Millisecond) // wait for the next window to start

result, err = counter.Count(ctx, key, 70)
require.NoError(t, err)
Expand Down

0 comments on commit 05bd555

Please sign in to comment.