mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 21:27:35 +03:00
parent
833475a2ed
commit
dbcf5b8cce
3 changed files with 10 additions and 8 deletions
|
@ -375,10 +375,10 @@ var _ = Describe("SentPacketHandler", func() {
|
|||
})
|
||||
|
||||
It("keeps the packets in the right order", func() {
|
||||
handler.nackPacket(2)
|
||||
handler.nackPacket(2)
|
||||
handler.nackPacket(4)
|
||||
handler.nackPacket(4)
|
||||
handler.nackPacket(2)
|
||||
handler.nackPacket(2)
|
||||
packet := handler.DequeuePacketForRetransmission()
|
||||
Expect(packet.PacketNumber).To(Equal(protocol.PacketNumber(2)))
|
||||
packet = handler.DequeuePacketForRetransmission()
|
||||
|
@ -386,12 +386,12 @@ var _ = Describe("SentPacketHandler", func() {
|
|||
})
|
||||
|
||||
It("only queues each packet once, regardless of the number of NACKs", func() {
|
||||
handler.nackPacket(2)
|
||||
handler.nackPacket(2)
|
||||
handler.nackPacket(4)
|
||||
handler.nackPacket(4)
|
||||
handler.nackPacket(2)
|
||||
handler.nackPacket(2)
|
||||
handler.nackPacket(4)
|
||||
handler.nackPacket(4)
|
||||
_ = handler.DequeuePacketForRetransmission()
|
||||
_ = handler.DequeuePacketForRetransmission()
|
||||
Expect(handler.DequeuePacketForRetransmission()).To(BeNil())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue