rename sendStream.handleMaxStreamDataFrame to updateSendWindow

This commit is contained in:
Marten Seemann 2021-03-12 13:36:23 +08:00
parent 3bce408c8d
commit c27f5a55b3
7 changed files with 33 additions and 40 deletions

View file

@ -220,9 +220,8 @@ var _ = Describe("Session", func() {
}
str := NewMockSendStreamI(mockCtrl)
streamManager.EXPECT().GetOrOpenSendStream(protocol.StreamID(12345)).Return(str, nil)
str.EXPECT().handleMaxStreamDataFrame(f)
err := sess.handleMaxStreamDataFrame(f)
Expect(err).ToNot(HaveOccurred())
str.EXPECT().updateSendWindow(protocol.ByteCount(0x1337))
Expect(sess.handleMaxStreamDataFrame(f)).To(Succeed())
})
It("updates the flow control window of the connection", func() {