Skip to content

Commit

Permalink
Simplify increments (libp2p#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli authored and t4n6a1ka committed Sep 5, 2019
1 parent baa2011 commit 5be11c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/test/backpressure/backpressure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 5be11c6

Please sign in to comment.