set max tracked packets to max cwnd * 2

This commit is contained in:
Lucas Clemente 2016-09-05 00:59:10 +02:00
parent 3b1231db81
commit 8c6eb61850
6 changed files with 9 additions and 12 deletions

View file

@ -83,7 +83,7 @@ var _ = Describe("receivedPacketHandler", func() {
})
It("doesn't store more than MaxTrackedReceivedPackets packets", func() {
for i := uint32(0); i < protocol.MaxTrackedReceivedPackets; i++ {
for i := protocol.PacketNumber(0); i < protocol.MaxTrackedReceivedPackets; i++ {
packetNumber := protocol.PacketNumber(1 + 2*i)
err := handler.ReceivedPacket(packetNumber)
Expect(err).ToNot(HaveOccurred())