quicvarint: use int return value instead of internal protocol.ByteCount (#4356)

This commit is contained in:
Marten Seemann
2024-03-20 07:56:55 +10:00
committed by GitHub
parent 4a99b816ae
commit 6325696fde
33 changed files with 60 additions and 53 deletions

View File

@@ -106,7 +106,7 @@ var _ = Describe("MAX_STREAMS frame", func() {
It("has the correct length", func() {
frame := MaxStreamsFrame{MaxStreamNum: 0x1337}
Expect(frame.Length(protocol.Version1)).To(Equal(1 + quicvarint.Len(0x1337)))
Expect(frame.Length(protocol.Version1)).To(BeEquivalentTo(1 + quicvarint.Len(0x1337)))
})
})
})