move constants used by the received packet handler to ackhandler package

This commit is contained in:
Marten Seemann 2018-02-27 20:07:08 +08:00
parent 41d7cbb014
commit 8fc0f53a8d
3 changed files with 10 additions and 10 deletions

View file

@ -98,7 +98,7 @@ var _ = Describe("receivedPacketHandler", func() {
It("queues an ACK for every RetransmittablePacketsBeforeAck retransmittable packet, if they are arriving fast", func() {
receiveAndAck10Packets()
p := protocol.PacketNumber(11)
for i := 0; i < protocol.RetransmittablePacketsBeforeAck-1; i++ {
for i := 0; i < retransmittablePacketsBeforeAck-1; i++ {
err := handler.ReceivedPacket(p, time.Time{}, true)
Expect(err).ToNot(HaveOccurred())
Expect(handler.ackQueued).To(BeFalse())