p2p/simulation: Correct timer reset

This commit is contained in:
lash 2018-12-03 18:51:23 +01:00
parent 953273480c
commit f32748a965

View file

@ -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 {