formatting
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2021-05-13 23:25:28 +01:00
parent c817930294
commit 259d9ad3a8

View File

@ -190,7 +190,7 @@ func TestNewReno_Congestion(t *testing.T) {
assert.Equal(t, sideAinitialAck, c.sideA.ack)
assert.Equal(t, uint32(0), c.sideB.nack)
assert.Equal(t, sideBinitialAck + uint32(numPackets), c.sideB.ack)
assert.Equal(t, sideBinitialAck+uint32(numPackets), c.sideB.ack)
})
t.Run("SequenceLoss", func(t *testing.T) {
@ -234,8 +234,8 @@ func TestNewReno_Congestion(t *testing.T) {
assert.Equal(t, uint32(0), c.sideA.nack)
assert.Equal(t, sideAinitialAck, c.sideA.ack)
assert.Equal(t, sideBinitialAck + uint32(20), c.sideB.nack)
assert.Equal(t, sideBinitialAck + uint32(numPackets), c.sideB.ack)
assert.Equal(t, sideBinitialAck+uint32(20), c.sideB.nack)
assert.Equal(t, sideBinitialAck+uint32(numPackets), c.sideB.ack)
})
})
@ -297,10 +297,10 @@ func TestNewReno_Congestion(t *testing.T) {
// ASSERT
assert.Equal(t, uint32(0), c.sideA.nack)
assert.Equal(t, sideAinitialAck + uint32(numPackets), c.sideA.ack)
assert.Equal(t, sideAinitialAck+uint32(numPackets), c.sideA.ack)
assert.Equal(t, uint32(0), c.sideB.nack)
assert.Equal(t, sideBinitialAck + uint32(numPackets), c.sideB.ack)
assert.Equal(t, sideBinitialAck+uint32(numPackets), c.sideB.ack)
})
t.Run("SequenceLoss", func(t *testing.T) {
@ -369,11 +369,11 @@ func TestNewReno_Congestion(t *testing.T) {
// ASSERT
assert.Equal(t, sideAinitialAck + uint32(13), c.sideA.nack)
assert.Equal(t, sideAinitialAck + uint32(numPackets), c.sideA.ack)
assert.Equal(t, sideAinitialAck+uint32(13), c.sideA.nack)
assert.Equal(t, sideAinitialAck+uint32(numPackets), c.sideA.ack)
assert.Equal(t, sideBinitialAck + uint32(9), c.sideB.nack)
assert.Equal(t, sideBinitialAck + uint32(numPackets), c.sideB.ack)
assert.Equal(t, sideBinitialAck+uint32(9), c.sideB.nack)
assert.Equal(t, sideBinitialAck+uint32(numPackets), c.sideB.ack)
})
})
}