Use infinite timeouts for Fuchsia

PiperOrigin-RevId: 655601638
This commit is contained in:
Bruno Dal Bo
2024-07-24 09:52:27 -07:00
committed by gVisor bot
parent 1986723ac6
commit d2352ebfeb
+3 -1
View File
@@ -1329,7 +1329,9 @@ TEST_P(SimpleTcpSocketTest, ListenConnectParallel) {
// Wait for the connect to fail or succeed as it can race with the
// socket listening.
struct pollfd poll_fd = {c.get(), POLLERR | POLLOUT, 0};
EXPECT_THAT(RetryEINTR(poll)(&poll_fd, 1, 1000),
const int timeout =
GvisorPlatform() == Platform::kFuchsia ? -1 : 1000;
EXPECT_THAT(RetryEINTR(poll)(&poll_fd, 1, timeout),
SyscallSucceedsWithValue(1));
}));
}