increase RTT and time constraints in handshake RTT tests

This commit is contained in:
Marten Seemann
2017-06-16 12:49:42 +02:00
parent 95c3db90a8
commit 55dbc3c52f

View File

@@ -25,7 +25,7 @@ var _ = Describe("Handshake integration tets", func() {
testStartedAt time.Time testStartedAt time.Time
) )
rtt := 300 * time.Millisecond rtt := 350 * time.Millisecond
BeforeEach(func() { BeforeEach(func() {
serverConfig = &quic.Config{TLSConfig: testdata.GetTLSConfig()} serverConfig = &quic.Config{TLSConfig: testdata.GetTLSConfig()}
@@ -62,7 +62,7 @@ var _ = Describe("Handshake integration tets", func() {
expectedDuration := time.Duration(num) * rtt expectedDuration := time.Duration(num) * rtt
Expect(testDuration).To(SatisfyAll( Expect(testDuration).To(SatisfyAll(
BeNumerically(">=", expectedDuration), BeNumerically(">=", expectedDuration),
BeNumerically("<", expectedDuration+rtt/3), BeNumerically("<", expectedDuration+rtt/2),
)) ))
} }