implement Writing of StopWaitingFrames

This commit is contained in:
Marten Seemann 2016-04-25 15:29:19 +07:00
parent bf7875426a
commit 47d7f98383
4 changed files with 70 additions and 14 deletions

View file

@ -23,7 +23,7 @@ var _ = Describe("Packet unpacker", func() {
BeforeEach(func() {
aead = &crypto.NullAEAD{}
hdr = &PublicHeader{
PacketNumber: 1,
PacketNumber: 10,
PacketNumberLen: 1,
}
hdrBin = []byte{0x04, 0x4c, 0x01}
@ -150,8 +150,8 @@ var _ = Describe("Packet unpacker", func() {
Expect(err).ToNot(HaveOccurred())
Expect(packet.frames).To(Equal([]frames.Frame{
&frames.StopWaitingFrame{
Entropy: 0xA4,
LeastUnackedDelta: 0x03,
Entropy: 0xA4,
LeastUnacked: 7,
},
}))
})