use the timescale factor for flow control tests on CIs

This commit is contained in:
Marten Seemann
2018-01-03 10:26:50 +07:00
parent 843a0786fc
commit b7b50572eb
3 changed files with 19 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ var _ = Describe("Connection Flow controller", func() {
It("autotunes the window", func() {
oldOffset := controller.bytesRead
oldWindowSize := controller.receiveWindowSize
rtt := 200 * time.Millisecond
rtt := scaleDuration(20 * time.Millisecond)
setRtt(rtt)
controller.epochStartTime = time.Now().Add(-time.Millisecond)
controller.epochStartOffset = oldOffset