rename the STREAM_BLOCKED frame to STREAM_DATA_BLOCKED

This commit is contained in:
Marten Seemann
2018-10-31 09:16:23 +07:00
parent 387613aa20
commit 05ecf9bc02
9 changed files with 74 additions and 74 deletions

View File

@@ -117,10 +117,10 @@ var _ = Describe("Frame parsing", func() {
Expect(frame).To(Equal(f))
})
It("unpacks stream-level BLOCKED frames", func() {
f := &StreamBlockedFrame{
StreamID: 0xdeadbeef,
Offset: 0xdead,
It("unpacks STREAM_DATA_BLOCKED frames", func() {
f := &StreamDataBlockedFrame{
StreamID: 0xdeadbeef,
DataLimit: 0xdead,
}
buf := &bytes.Buffer{}
err := f.Write(buf, versionIETFFrames)