mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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 side
This commit is contained in:
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…
x
Reference in New Issue
Block a user