forked from quic-go/quic-go
Merge pull request #682 from lucas-clemente/fix-rtt-test
increase RTT and time constraints in handshake RTT tests
This commit is contained in:
@@ -25,7 +25,7 @@ var _ = Describe("Handshake integration tets", func() {
|
||||
testStartedAt time.Time
|
||||
)
|
||||
|
||||
rtt := 300 * time.Millisecond
|
||||
rtt := 350 * time.Millisecond
|
||||
|
||||
BeforeEach(func() {
|
||||
serverConfig = &quic.Config{TLSConfig: testdata.GetTLSConfig()}
|
||||
@@ -62,7 +62,7 @@ var _ = Describe("Handshake integration tets", func() {
|
||||
expectedDuration := time.Duration(num) * rtt
|
||||
Expect(testDuration).To(SatisfyAll(
|
||||
BeNumerically(">=", expectedDuration),
|
||||
BeNumerically("<", expectedDuration+rtt/3),
|
||||
BeNumerically("<", expectedDuration+rtt/2),
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user