formatting
This commit is contained in:
parent
c817930294
commit
259d9ad3a8
@ -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)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user