mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Use infinite timeouts for Fuchsia
PiperOrigin-RevId: 655601638
This commit is contained in:
@@ -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));
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user