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

@@ -59,7 +59,7 @@ var _ = Describe("NEW_TOKEN frame", func() {
It("has the correct min length", func() {
frame := &NewTokenFrame{Token: []byte("foobar")}
Expect(frame.Length(protocol.Version1)).To(Equal(1 + quicvarint.Len(6) + 6))
Expect(frame.Length(protocol.Version1)).To(BeEquivalentTo(1 + quicvarint.Len(6) + 6))
})
})
})