return total bytes sent when resetting a stream in the flow controller

This commit is contained in:
Marten Seemann
2017-01-03 16:09:18 +07:00
parent 9e09198df6
commit 544a58a038
7 changed files with 30 additions and 17 deletions

View File

@@ -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