Defer poll timeout to Fuchsia's CI infra

Set the ICMP poll timeout to a negative value so the poll will block
indefinitely. This effectively delegates the timeout to the overall test
timeout imposed by Fuchsia's CI/CQ.

PiperOrigin-RevId: 516863038
This commit is contained in:
Nick Brown
2023-03-15 10:28:20 -07:00
committed by gVisor bot
parent 3653ddc1c9
commit cc1f80913f
+5 -4
View File
@@ -53,10 +53,11 @@ namespace testing {
namespace {
size_t IcmpTimeoutMillis() {
// Fuchsia's CI infra is susceptible to timing jumps. Set a long timeout
// to avoid flakes.
return GvisorPlatform() == Platform::kFuchsia ? 100000 : 1000;
int IcmpTimeoutMillis() {
// Fuchsia's CI infra is susceptible to timing jumps. Set a negative timeout
// so that poll will block indefinitely, which effectively delegates the
// timeout to infra.
return GvisorPlatform() == Platform::kFuchsia ? -1 : 1000;
}
// Fixture for tests parameterized by the address family to use (AF_INET and