Skip to content

Commit

Permalink
fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
tychoish committed Dec 8, 2023
1 parent 32ca84e commit 7ca1e02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions itertool/itertool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,7 @@ func TestRateLimit(t *testing.T) {
testt.Logf(t, "start at %s, end at %s; duration=%s ", start, end, dur)

assert.Equal(t, 10, count.Get())
assert.True(t, dur <= 200*time.Millisecond)
assert.True(t, dur > 100*time.Millisecond)
assert.True(t, dur >= time.Second)
})

}

0 comments on commit 7ca1e02

Please sign in to comment.