implement PingFrame

This commit is contained in:
Marten Seemann 2016-05-04 10:08:07 +07:00
parent b183b0edb3
commit 01c5d91acc
5 changed files with 72 additions and 5 deletions

View file

@ -152,7 +152,9 @@ var _ = Describe("Packet unpacker", func() {
setReader([]byte{0x07})
packet, err := unpacker.Unpack(hdrBin, hdr, r)
Expect(err).ToNot(HaveOccurred())
Expect(packet.frames).To(HaveLen(0))
Expect(packet.frames).To(Equal([]frames.Frame{
&frames.PingFrame{},
}))
})
It("errors on invalid type", func() {