From f32748a965d6e8128be0ec00f8c7f9a17f63243b Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 3 Dec 2018 18:51:23 +0100 Subject: [PATCH] p2p/simulation: Correct timer reset --- p2p/simulations/network_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/p2p/simulations/network_test.go b/p2p/simulations/network_test.go index 3185a7ea6f..5733bfd885 100644 --- a/p2p/simulations/network_test.go +++ b/p2p/simulations/network_test.go @@ -389,7 +389,6 @@ func BenchmarkMinimalService(b *testing.B) { func benchmarkMinimalServiceTmp(b *testing.B) { // stop timer to discard setup time pollution - b.StopTimer() args := strings.Split(b.Name(), "/") nodeCount, err := strconv.ParseInt(args[2], 10, 16) if err != nil { @@ -429,7 +428,7 @@ func benchmarkMinimalServiceTmp(b *testing.B) { } // ready, set, go - b.StartTimer() + b.ResetTimer() // connect nodes in a ring for i, id := range ids {