mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 21:27:35 +03:00
Merge pull request #1219 from lucas-clemente/max-tracked-error-check
remove incorrect error check when sending a packet
This commit is contained in:
commit
41d7cbb014
6 changed files with 43 additions and 104 deletions
|
@ -1081,7 +1081,7 @@ var _ = Describe("Session", func() {
|
|||
Expect(sess.rttStats.SmoothedRTT()).To(Equal(rtt)) // make sure it worked
|
||||
sess.packer.packetNumberGenerator.next = n + 1
|
||||
// Now, we send a single packet, and expect that it was retransmitted later
|
||||
err := sess.sentPacketHandler.SentPacket(&ackhandler.Packet{
|
||||
sess.sentPacketHandler.SentPacket(&ackhandler.Packet{
|
||||
PacketNumber: n,
|
||||
Length: 1,
|
||||
Frames: []wire.Frame{&wire.StreamFrame{
|
||||
|
@ -1089,7 +1089,6 @@ var _ = Describe("Session", func() {
|
|||
}},
|
||||
EncryptionLevel: protocol.EncryptionForwardSecure,
|
||||
})
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
go sess.run()
|
||||
defer sess.Close(nil)
|
||||
sess.scheduleSending()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue