add version number to Frame.Write

This commit is contained in:
Lucas Clemente
2016-05-09 19:50:15 +02:00
parent a219b72968
commit 14b16a429c
21 changed files with 48 additions and 46 deletions

View File

@@ -22,7 +22,7 @@ var _ = Describe("PingFrame", func() {
It("writes a sample frame", func() {
b := &bytes.Buffer{}
frame := PingFrame{}
frame.Write(b, 10, protocol.PacketNumberLen6)
frame.Write(b, 10, protocol.PacketNumberLen6, 0)
Expect(b.Bytes()).To(Equal([]byte{0x07}))
})