Update cache_test.go

This commit is contained in:
Fedor Korotkiy 2020-03-29 13:10:24 +00:00
parent 1c5cd2e0d2
commit 8b39f7d901

View file

@ -161,7 +161,7 @@ func BenchmarkCache_Set(b *testing.B) {
b.ResetTimer()
b.ReportAllocs()
for i := 0; i < b.N; i++ {
c.Set(i % tc.cap, i)
c.Set(i%tc.cap, i)
}
})
}