summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2021-06-25 11:43:24 -0700
committergVisor bot <gvisor-bot@google.com>2021-06-25 11:46:14 -0700
commit4feb9187bbc87fdb3f90a82598eeb10f46142b6e (patch)
treef7b5d540a19060d7ab197e10e405f1a5d9ec86d9 /test
parentc689c36c783e310ff8550ed58019ec300edba435 (diff)
[tcp_info_test] Increase retransmission timeout
PiperOrigin-RevId: 381515399
Diffstat (limited to 'test')
-rw-r--r--test/packetimpact/tests/tcp_info_test.go4
1 files changed, 2 insertions, 2 deletions
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)
}