mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Use infinite timeout on Fuchsia
PiperOrigin-RevId: 602783304
This commit is contained in:
@@ -769,7 +769,9 @@ void TestHangupDuringConnect(const SocketInetTestParam& param,
|
||||
.fd = client.get(),
|
||||
};
|
||||
constexpr int kTimeout = 2000;
|
||||
int n = poll(&pfd, 1, kTimeout);
|
||||
// NB: poll indefinitely on Fuchsia to avoid timing out in Infra.
|
||||
int n =
|
||||
poll(&pfd, 1, GvisorPlatform() == Platform::kFuchsia ? -1 : kTimeout);
|
||||
ASSERT_GE(n, 0) << strerror(errno);
|
||||
ASSERT_EQ(n, 1);
|
||||
ASSERT_EQ(pfd.revents, POLLHUP | POLLERR);
|
||||
|
||||
Reference in New Issue
Block a user