mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 05:07:36 +03:00
Merge pull request #582 from lucas-clemente/improve-ackhandler-logs
Improve ackhandler logs
This commit is contained in:
commit
fa12f3664d
3 changed files with 17 additions and 17 deletions
|
@ -1423,8 +1423,7 @@ var _ = Describe("Session", func() {
|
|||
It("gets stream level window updates", func() {
|
||||
err := sess.flowControlManager.AddBytesRead(1, protocol.ReceiveStreamFlowControlWindow)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
frames, err := sess.getWindowUpdateFrames()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
frames := sess.getWindowUpdateFrames()
|
||||
Expect(frames).To(HaveLen(1))
|
||||
Expect(frames[0].StreamID).To(Equal(protocol.StreamID(1)))
|
||||
Expect(frames[0].ByteOffset).To(Equal(protocol.ReceiveStreamFlowControlWindow * 2))
|
||||
|
@ -1435,8 +1434,7 @@ var _ = Describe("Session", func() {
|
|||
Expect(err).NotTo(HaveOccurred())
|
||||
err = sess.flowControlManager.AddBytesRead(5, protocol.ReceiveConnectionFlowControlWindow)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
frames, err := sess.getWindowUpdateFrames()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
frames := sess.getWindowUpdateFrames()
|
||||
Expect(frames).To(HaveLen(1))
|
||||
Expect(frames[0].StreamID).To(Equal(protocol.StreamID(0)))
|
||||
Expect(frames[0].ByteOffset).To(Equal(protocol.ReceiveConnectionFlowControlWindow * 2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue