raft: Fixed a test misassumption
network_test.go:56: total = 59.22354ms, want > 50ms 59 is > 50, but the equation added 10 to the right siderelease-2.2
parent
25c87f13fd
commit
32372e1d70
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue