mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-01-27 04:40:07 +08:00
make metrics test a little less picky
This commit is contained in:
parent
5b171ba4bf
commit
b7d8063a04
@ -51,7 +51,7 @@ func TestLatencyEWMA(t *testing.T) {
|
||||
mu := exp
|
||||
sig := 10.0
|
||||
next := func() time.Duration {
|
||||
mu = (rand.NormFloat64() * sig) + mu
|
||||
mu := (rand.NormFloat64() * sig) + mu
|
||||
return time.Duration(mu)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user