mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-07 06:07:36 +03:00
wire: use constants for frame types (#3739)
This commit is contained in:
parent
48e18b922d
commit
7a393315bd
35 changed files with 118 additions and 100 deletions
|
@ -47,7 +47,7 @@ var _ = Describe("CRYPTO frame", func() {
|
|||
}
|
||||
b, err := f.Append(nil, protocol.Version1)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
expected := []byte{0x6}
|
||||
expected := []byte{cryptoFrameType}
|
||||
expected = append(expected, encodeVarInt(0x123456)...) // offset
|
||||
expected = append(expected, encodeVarInt(6)...) // length
|
||||
expected = append(expected, []byte("foobar")...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue