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

@@ -45,7 +45,7 @@ var _ = Describe("DATA_BLOCKED frame", func() {
It("has the correct min length", func() {
frame := DataBlockedFrame{MaximumData: 0x12345}
Expect(frame.Length(protocol.Version1)).To(Equal(1 + quicvarint.Len(0x12345)))
Expect(frame.Length(protocol.Version1)).To(BeEquivalentTo(1 + quicvarint.Len(0x12345)))
})
})
})