mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-07 06:07:36 +03:00
parent
d469a19b62
commit
93c52a3414
2 changed files with 5 additions and 5 deletions
|
@ -140,12 +140,11 @@ var _ = Describe("Public Header", func() {
|
|||
ConnectionID: 0x4cfa9f9b668619f6,
|
||||
TruncateConnectionID: true,
|
||||
PacketNumberLen: protocol.PacketNumberLen6,
|
||||
PacketNumber: 1,
|
||||
}
|
||||
err := hdr.WritePublicHeader(b)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
firstByte, _ := b.ReadByte()
|
||||
Expect(firstByte & 0x08).To(BeZero())
|
||||
Expect(b.Bytes()).ToNot(ContainSubstring(string([]byte{0xf6, 0x19, 0x86, 0x66, 0x9b, 0x9f, 0xfa, 0x4c})))
|
||||
Expect(b.Bytes()).To(Equal([]byte{0x30, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0}))
|
||||
})
|
||||
|
||||
Context("GetLength", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue