mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
rename lastSentAckElicitingPacketTime to lastAckElicitingPacketTime
This commit is contained in:
parent
c8e5bb5b50
commit
feb3e9a713
2 changed files with 12 additions and 12 deletions
|
@ -125,20 +125,20 @@ var _ = Describe("SentPacketHandler", func() {
|
|||
It("stores the sent time", func() {
|
||||
sendTime := time.Now().Add(-time.Minute)
|
||||
handler.SentPacket(ackElicitingPacket(&Packet{PacketNumber: 1, SendTime: sendTime}))
|
||||
Expect(handler.appDataPackets.lastSentAckElicitingPacketTime).To(Equal(sendTime))
|
||||
Expect(handler.appDataPackets.lastAckElicitingPacketTime).To(Equal(sendTime))
|
||||
})
|
||||
|
||||
It("stores the sent time of Initial packets", func() {
|
||||
sendTime := time.Now().Add(-time.Minute)
|
||||
handler.SentPacket(ackElicitingPacket(&Packet{PacketNumber: 1, SendTime: sendTime, EncryptionLevel: protocol.EncryptionInitial}))
|
||||
handler.SentPacket(ackElicitingPacket(&Packet{PacketNumber: 2, SendTime: sendTime.Add(time.Hour), EncryptionLevel: protocol.Encryption1RTT}))
|
||||
Expect(handler.initialPackets.lastSentAckElicitingPacketTime).To(Equal(sendTime))
|
||||
Expect(handler.initialPackets.lastAckElicitingPacketTime).To(Equal(sendTime))
|
||||
})
|
||||
|
||||
It("does not store non-ack-eliciting packets", func() {
|
||||
handler.SentPacket(nonAckElicitingPacket(&Packet{PacketNumber: 1}))
|
||||
Expect(handler.appDataPackets.history.Len()).To(BeZero())
|
||||
Expect(handler.appDataPackets.lastSentAckElicitingPacketTime).To(BeZero())
|
||||
Expect(handler.appDataPackets.lastAckElicitingPacketTime).To(BeZero())
|
||||
Expect(handler.bytesInFlight).To(BeZero())
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue