diff --git a/raft/rafttest/network_test.go b/raft/rafttest/network_test.go index 6a2c88116..f5bc16049 100644 --- a/raft/rafttest/network_test.go +++ b/raft/rafttest/network_test.go @@ -52,7 +52,7 @@ func TestNetworkDelay(t *testing.T) { w := time.Duration(float64(sent)*delayrate/2) * delay // there are pretty overhead in the send call, since it genarete random numbers. - if total < w+10*delay { + if total < w { t.Errorf("total = %v, want > %v", total, w) } }