rename MaxStreamDataFrame.ByteOffset to MaximumStreamData

This commit is contained in:
Marten Seemann 2020-07-02 16:24:57 +07:00
parent f4519cfd32
commit 5466de6565
14 changed files with 43 additions and 43 deletions

View file

@ -36,8 +36,8 @@ var _ = Describe("Window Update Queue", func() {
q.AddStream(3)
q.AddStream(1)
q.QueueAll()
Expect(queuedFrames).To(ContainElement(&wire.MaxStreamDataFrame{StreamID: 1, ByteOffset: 10}))
Expect(queuedFrames).To(ContainElement(&wire.MaxStreamDataFrame{StreamID: 3, ByteOffset: 30}))
Expect(queuedFrames).To(ContainElement(&wire.MaxStreamDataFrame{StreamID: 1, MaximumStreamData: 10}))
Expect(queuedFrames).To(ContainElement(&wire.MaxStreamDataFrame{StreamID: 3, MaximumStreamData: 30}))
})
It("deletes the entry after getting the MAX_STREAM_DATA frame", func() {
@ -106,7 +106,7 @@ var _ = Describe("Window Update Queue", func() {
q.AddStream(10)
q.QueueAll()
Expect(queuedFrames).To(Equal([]wire.Frame{
&wire.MaxStreamDataFrame{StreamID: 10, ByteOffset: 200},
&wire.MaxStreamDataFrame{StreamID: 10, MaximumStreamData: 200},
}))
})
})