Browse Source

Simplify increments (#684)

pull/693/head
Christian Muehlhaeuser 5 years ago
committed by Raúl Kripalani
parent
commit
038cff7946
  1. 4
      p2p/test/backpressure/backpressure_test.go

4
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)

Loading…
Cancel
Save