From e291066e4873bf41a3303e7ebc9651f256415904 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 10 Jul 2017 17:21:52 +0800 Subject: [PATCH] increase RTT and make assertion more lenient in handshake test --- integrationtests/handshake/rtt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrationtests/handshake/rtt.go b/integrationtests/handshake/rtt.go index 29473e8c7..d998caf5a 100644 --- a/integrationtests/handshake/rtt.go +++ b/integrationtests/handshake/rtt.go @@ -24,7 +24,7 @@ var _ = Describe("Handshake integration tets", func() { serverConfig *quic.Config testStartedAt time.Time ) - rtt := 350 * time.Millisecond + rtt := 400 * time.Millisecond BeforeEach(func() { serverConfig = &quic.Config{} @@ -61,7 +61,7 @@ var _ = Describe("Handshake integration tets", func() { expectedDuration := time.Duration(num) * rtt Expect(testDuration).To(SatisfyAll( BeNumerically(">=", expectedDuration), - BeNumerically("<", expectedDuration+rtt/2), + BeNumerically("<", expectedDuration+rtt), )) }