wire: use constants for frame types (#3739)

This commit is contained in:
Marten Seemann
2023-04-19 14:58:31 +02:00
committed by GitHub
parent 48e18b922d
commit 7a393315bd
35 changed files with 118 additions and 100 deletions

View File

@@ -74,7 +74,7 @@ var _ = Describe("NEW_CONNECTION_ID frame", func() {
}
b, err := frame.Append(nil, protocol.Version1)
Expect(err).ToNot(HaveOccurred())
expected := []byte{0x18}
expected := []byte{newConnectionIDFrameType}
expected = append(expected, encodeVarInt(0x1337)...)
expected = append(expected, encodeVarInt(0x42)...)
expected = append(expected, 6)