forked from quic-go/quic-go
fix flaky flow controller test
This commit is contained in:
@@ -184,7 +184,7 @@ var _ = Describe("Stream Flow controller", func() {
|
||||
It("tells the connection flow controller when the window was autotuned", func() {
|
||||
oldOffset := controller.bytesRead
|
||||
controller.contributesToConnection = true
|
||||
setRtt(20 * time.Millisecond)
|
||||
setRtt(200 * time.Millisecond)
|
||||
controller.epochStartOffset = oldOffset
|
||||
controller.epochStartTime = time.Now().Add(-time.Millisecond)
|
||||
controller.AddBytesRead(55)
|
||||
@@ -197,7 +197,7 @@ var _ = Describe("Stream Flow controller", func() {
|
||||
It("doesn't tell the connection flow controller if it doesn't contribute", func() {
|
||||
oldOffset := controller.bytesRead
|
||||
controller.contributesToConnection = false
|
||||
setRtt(20 * time.Millisecond)
|
||||
setRtt(200 * time.Millisecond)
|
||||
controller.epochStartOffset = oldOffset
|
||||
controller.epochStartTime = time.Now().Add(-time.Millisecond)
|
||||
controller.AddBytesRead(55)
|
||||
|
||||
Reference in New Issue
Block a user