forked from quic-go/quic-go
return total bytes sent when resetting a stream in the flow controller
This commit is contained in:
@@ -108,6 +108,11 @@ var _ = Describe("Flow controller", func() {
|
||||
Expect(controller.bytesSent).To(Equal(protocol.ByteCount(5 + 6)))
|
||||
})
|
||||
|
||||
It("gets the bytesSent", func() {
|
||||
controller.bytesSent = 8
|
||||
Expect(controller.GetBytesSent()).To(Equal(protocol.ByteCount(8)))
|
||||
})
|
||||
|
||||
It("gets the size of the remaining flow control window", func() {
|
||||
controller.bytesSent = 5
|
||||
controller.sendFlowControlWindow = 12
|
||||
|
||||
Reference in New Issue
Block a user