[tcp_info_test] Increase retransmission timeout

PiperOrigin-RevId: 381515399
This commit is contained in:
Tamir Duberstein
2021-06-25 11:46:14 -07:00
committed by gVisor bot
parent c689c36c78
commit 4feb9187bb
+2 -2
View File
@@ -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)
}