mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
rename AckFrame to AckFrameLegacy
This commit is contained in:
parent
c01e16da71
commit
288cb9e143
13 changed files with 110 additions and 110 deletions
|
@ -81,7 +81,7 @@ var _ = Describe("Packet unpacker", func() {
|
|||
})
|
||||
|
||||
It("unpacks ack frames", func() {
|
||||
f := &frames.AckFrame{
|
||||
f := &frames.AckFrameLegacy{
|
||||
LargestObserved: 0x13,
|
||||
Entropy: 0x37,
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ var _ = Describe("Packet unpacker", func() {
|
|||
packet, err := unpacker.Unpack(hdrBin, hdr, r)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(packet.frames).To(HaveLen(1))
|
||||
readFrame := packet.frames[0].(*frames.AckFrame)
|
||||
readFrame := packet.frames[0].(*frames.AckFrameLegacy)
|
||||
Expect(readFrame.LargestObserved).To(Equal(protocol.PacketNumber(0x13)))
|
||||
Expect(readFrame.Entropy).To(Equal(byte(0x37)))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue