remove entropy from StopWaitingFrame

This commit is contained in:
Lucas Clemente 2016-08-30 21:29:55 +02:00
parent b032a07f70
commit 3c2148981f
4 changed files with 21 additions and 72 deletions

View file

@ -176,12 +176,11 @@ var _ = Describe("Packet unpacker", func() {
})
It("unpacks STOP_WAITING frames", func() {
setData([]byte{0x06, 0xA4, 0x03})
setData([]byte{0x06, 0x03})
packet, err := unpacker.Unpack(hdrBin, hdr, data)
Expect(err).ToNot(HaveOccurred())
Expect(packet.frames).To(Equal([]frames.Frame{
&frames.StopWaitingFrame{
Entropy: 0xA4,
LeastUnacked: 7,
},
}))