remove some unneccessary type conversions

This commit is contained in:
Marten Seemann 2019-02-17 12:09:18 +08:00
parent 1e796fed4f
commit fbe8844006
7 changed files with 14 additions and 14 deletions

View file

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