forked from quic-go/quic-go
committed by
Lucas Clemente
parent
ad91d02cbd
commit
5ec7ee7f01
@@ -48,7 +48,7 @@ var _ = Describe("Server", func() {
|
||||
|
||||
It("composes version negotiation packets", func() {
|
||||
expected := append(
|
||||
[]byte{0x01 | 0x08 | 0x04, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
|
||||
[]byte{0x01 | 0x08, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
|
||||
protocol.SupportedVersionsAsTags...,
|
||||
)
|
||||
Expect(composeVersionNegotiation(1)).To(Equal(expected))
|
||||
@@ -141,7 +141,7 @@ var _ = Describe("Server", func() {
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
data = data[:n]
|
||||
expected := append(
|
||||
[]byte{0xd, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
|
||||
[]byte{0x9, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
|
||||
protocol.SupportedVersionsAsTags...,
|
||||
)
|
||||
Expect(data).To(Equal(expected))
|
||||
|
||||
Reference in New Issue
Block a user