lib/bloomfilter: fix TestLimiterConcurrent

This commit is contained in:
Aliaksandr Valialkin 2021-05-24 05:17:36 +03:00
parent 1487274209
commit 0f84503880

View file

@ -79,7 +79,7 @@ func TestLimiterConcurrent(t *testing.T) {
}
}
p := float64(falseAdditions) / float64(maxItems)
if p > 0.003 {
if p > 0.0035 {
panic(fmt.Errorf("too big false additions share=%.5f: %d out of %d", p, falseAdditions, maxItems))
}
doneCh <- struct{}{}