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

@@ -52,7 +52,7 @@ var _ = Describe("STREAM_DATA_BLOCKED frame", func() {
}
b, err := f.Append(nil, protocol.Version1)
Expect(err).ToNot(HaveOccurred())
expected := []byte{0x15}
expected := []byte{streamDataBlockedFrameType}
expected = append(expected, encodeVarInt(uint64(f.StreamID))...)
expected = append(expected, encodeVarInt(uint64(f.MaximumStreamData))...)
Expect(b).To(Equal(expected))