mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user