From 038cff7946be0835c1d49f88b4ce054c2ff8c77b Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 22 Jul 2019 14:45:37 +0200 Subject: [PATCH] Simplify increments (#684) --- p2p/test/backpressure/backpressure_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/test/backpressure/backpressure_test.go b/p2p/test/backpressure/backpressure_test.go index e102f4d1a..72525b53f 100644 --- a/p2p/test/backpressure/backpressure_test.go +++ b/p2p/test/backpressure/backpressure_test.go @@ -218,7 +218,7 @@ func TestStBackpressureStreamWrite(t *testing.T) { select { case n := <-senderWrote: writes++ - bytes = bytes + n + bytes += n default: log.Debugf("stats: sender wrote %d bytes, %d writes", bytes, writes) return bytes, writes @@ -326,7 +326,7 @@ func TestStBackpressureStreamWrite(t *testing.T) { // drain it all, wait again receive(s, b) - roundsTotal = roundsTotal + b + roundsTotal += b } roundsTime := time.Since(roundsStart)