mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
remove some unneccessary type conversions
This commit is contained in:
parent
1e796fed4f
commit
fbe8844006
7 changed files with 14 additions and 14 deletions
|
@ -183,7 +183,7 @@ var _ = Describe("Stream Flow controller", func() {
|
|||
controller.epochStartTime = time.Now().Add(-time.Millisecond)
|
||||
controller.AddBytesRead(55)
|
||||
offset := controller.GetWindowUpdate()
|
||||
Expect(offset).To(Equal(protocol.ByteCount(oldOffset + 55 + 2*oldWindowSize)))
|
||||
Expect(offset).To(Equal(oldOffset + 55 + 2*oldWindowSize))
|
||||
Expect(controller.receiveWindowSize).To(Equal(2 * oldWindowSize))
|
||||
Expect(controller.connection.(*connectionFlowController).receiveWindowSize).To(Equal(protocol.ByteCount(float64(controller.receiveWindowSize) * protocol.ConnectionFlowControlMultiplier)))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue