From 4feb9187bbc87fdb3f90a82598eeb10f46142b6e Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Fri, 25 Jun 2021 11:43:24 -0700 Subject: [tcp_info_test] Increase retransmission timeout PiperOrigin-RevId: 381515399 --- test/packetimpact/tests/tcp_info_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/packetimpact') diff --git a/test/packetimpact/tests/tcp_info_test.go b/test/packetimpact/tests/tcp_info_test.go index 74b7ea201..5410cc368 100644 --- a/test/packetimpact/tests/tcp_info_test.go +++ b/test/packetimpact/tests/tcp_info_test.go @@ -86,8 +86,8 @@ func TestTCPInfo(t *testing.T) { t.Fatalf("expected a packet with payload %s: %s", samplePayload, err) } - // Expect retransmission of the packet within 1.5*RTO. - timeout := time.Duration(float64(info.RTO)*1.5) * time.Microsecond + // Given a generous retransmission timeout. + timeout := time.Duration(info.RTO) * 2 * time.Microsecond if _, err := conn.ExpectData(t, &testbench.TCP{SeqNum: seq}, samplePayload, timeout); err != nil { t.Fatalf("expected a packet with payload %s: %s", samplePayload, err) } -- cgit v1.2.3