From 32372e1d70df1c20612a080eee50b3f8f0ff8f59 Mon Sep 17 00:00:00 2001 From: Matt Keller Date: Thu, 27 Aug 2015 15:15:34 -0400 Subject: [PATCH] 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 --- raft/rafttest/network_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }