Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
p2p/simulation: Correct timer reset
Browse files Browse the repository at this point in the history
  • Loading branch information
nolash committed Dec 10, 2018
1 parent 5421f7b commit 9dd40d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions p2p/simulations/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9dd40d2

Please sign in to comment.