rename ResetStreamFrame.ByteOffset to FinalSize

This commit is contained in:
Marten Seemann 2020-07-02 16:20:44 +07:00
parent cc340b2887
commit 865332015c
13 changed files with 50 additions and 50 deletions

View file

@ -507,8 +507,8 @@ var _ = Describe("Receive Stream", func() {
)
mockSender.EXPECT().onStreamCompleted(streamID)
Expect(str.handleResetStreamFrame(&wire.ResetStreamFrame{
StreamID: streamID,
ByteOffset: 42,
StreamID: streamID,
FinalSize: 42,
})).To(Succeed())
str.CancelRead(1234)
})
@ -561,9 +561,9 @@ var _ = Describe("Receive Stream", func() {
Context("receiving RESET_STREAM frames", func() {
rst := &wire.ResetStreamFrame{
StreamID: streamID,
ByteOffset: 42,
ErrorCode: 1234,
StreamID: streamID,
FinalSize: 42,
ErrorCode: 1234,
}
It("unblocks Read", func() {
@ -624,7 +624,7 @@ var _ = Describe("Receive Stream", func() {
mockFC.EXPECT().UpdateHighestReceived(protocol.ByteCount(42), true).Times(2)
Expect(str.handleStreamFrame(&wire.StreamFrame{
StreamID: streamID,
Offset: rst.ByteOffset,
Offset: rst.FinalSize,
FinBit: true,
})).To(Succeed())
Expect(str.handleResetStreamFrame(rst)).To(Succeed())