use ByteCount type for Frame, Packet and PublicHeader lengths

This commit is contained in:
Marten Seemann
2016-05-10 23:40:22 +07:00
parent 174095d5aa
commit e345270e84
19 changed files with 53 additions and 53 deletions

View File

@@ -59,7 +59,7 @@ var _ = Describe("StreamFrame", func() {
Offset: 1,
}
f.Write(b, 1, protocol.PacketNumberLen6, 0)
Expect(f.MinLength()).To(Equal(b.Len()))
Expect(f.MinLength()).To(Equal(protocol.ByteCount(b.Len())))
})
})