forked from quic-go/quic-go
logging: pass the packet number to ConnectionTracer.DroppedPacket (#4171)
In most cases the packet number is not known when a packet is dropped, but it's useful to log the packet number when dropping a duplicate packet.
This commit is contained in:
@@ -184,9 +184,9 @@ var _ = Describe("Tracing", func() {
|
||||
})
|
||||
|
||||
It("traces the DroppedPacket event", func() {
|
||||
tr1.EXPECT().DroppedPacket(PacketTypeInitial, ByteCount(1337), PacketDropHeaderParseError)
|
||||
tr2.EXPECT().DroppedPacket(PacketTypeInitial, ByteCount(1337), PacketDropHeaderParseError)
|
||||
tracer.DroppedPacket(PacketTypeInitial, 1337, PacketDropHeaderParseError)
|
||||
tr1.EXPECT().DroppedPacket(PacketTypeInitial, PacketNumber(42), ByteCount(1337), PacketDropHeaderParseError)
|
||||
tr2.EXPECT().DroppedPacket(PacketTypeInitial, PacketNumber(42), ByteCount(1337), PacketDropHeaderParseError)
|
||||
tracer.DroppedPacket(PacketTypeInitial, 42, 1337, PacketDropHeaderParseError)
|
||||
})
|
||||
|
||||
It("traces the UpdatedCongestionState event", func() {
|
||||
|
||||
Reference in New Issue
Block a user