forked from quic-go/quic-go
implement parsing of headers with different connection ID lengths
This commit is contained in:
@@ -1823,7 +1823,7 @@ var _ = Describe("Client Session", func() {
|
||||
sess.queueControlFrame(&wire.PingFrame{})
|
||||
var packet []byte
|
||||
Eventually(mconn.written).Should(Receive(&packet))
|
||||
hdr, err := wire.ParseInvariantHeader(bytes.NewReader(packet))
|
||||
hdr, err := wire.ParseInvariantHeader(bytes.NewReader(packet), 0)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(hdr.DestConnectionID).To(Equal(protocol.ConnectionID{1, 3, 3, 7, 1, 3, 3, 7}))
|
||||
// make sure the go routine returns
|
||||
|
||||
Reference in New Issue
Block a user