mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
remove error return value from ComposeVersionNegotiation (#3410)
This commit is contained in:
parent
b9a77af8f9
commit
60bbe92194
8 changed files with 14 additions and 30 deletions
|
@ -674,8 +674,7 @@ var _ = Describe("Connection", func() {
|
|||
})
|
||||
|
||||
It("drops Version Negotiation packets", func() {
|
||||
b, err := wire.ComposeVersionNegotiation(srcConnID, destConnID, conn.config.Versions)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
b := wire.ComposeVersionNegotiation(srcConnID, destConnID, conn.config.Versions)
|
||||
tracer.EXPECT().DroppedPacket(logging.PacketTypeVersionNegotiation, protocol.ByteCount(len(b)), logging.PacketDropUnexpectedPacket)
|
||||
Expect(conn.handlePacketImpl(&receivedPacket{
|
||||
data: b,
|
||||
|
@ -2592,8 +2591,7 @@ var _ = Describe("Client Connection", func() {
|
|||
|
||||
Context("handling Version Negotiation", func() {
|
||||
getVNP := func(versions ...protocol.VersionNumber) *receivedPacket {
|
||||
b, err := wire.ComposeVersionNegotiation(srcConnID, destConnID, versions)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
b := wire.ComposeVersionNegotiation(srcConnID, destConnID, versions)
|
||||
return &receivedPacket{
|
||||
data: b,
|
||||
buffer: getPacketBuffer(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue