update the packet numbers in decoding test to the ones from the draft

This commit is contained in:
Marten Seemann 2021-04-02 14:42:22 +07:00
parent 3376a9fa9f
commit b57a1095c5

View file

@ -18,8 +18,8 @@ var _ = Describe("packet number calculation", func() {
}) })
It("works with the examples from the draft", func() { It("works with the examples from the draft", func() {
Expect(GetPacketNumberLengthForHeader(0xac5c02, 0xabe8bc)).To(Equal(PacketNumberLen2)) Expect(GetPacketNumberLengthForHeader(0xac5c02, 0xabe8b3)).To(Equal(PacketNumberLen2))
Expect(GetPacketNumberLengthForHeader(0xace8fe, 0xabe8bc)).To(Equal(PacketNumberLen3)) Expect(GetPacketNumberLengthForHeader(0xace8fe, 0xabe8b3)).To(Equal(PacketNumberLen3))
}) })
getEpoch := func(len PacketNumberLen) uint64 { getEpoch := func(len PacketNumberLen) uint64 {