mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Poll indefinitely on Fuchsia
PiperOrigin-RevId: 603794823
This commit is contained in:
@@ -1202,7 +1202,10 @@ TEST_P(SocketInetLoopbackTest, TCPBacklogAcceptAll) {
|
||||
.fd = waiting_clients[i].get(),
|
||||
.events = POLLOUT,
|
||||
};
|
||||
EXPECT_THAT(poll(&pfd, 1, kTimeout), SyscallSucceedsWithValue(1));
|
||||
// NB: poll indefinitely on Fuchsia to avoid timing out in Infra.
|
||||
EXPECT_THAT(
|
||||
poll(&pfd, 1, GvisorPlatform() == Platform::kFuchsia ? -1 : kTimeout),
|
||||
SyscallSucceedsWithValue(1));
|
||||
EXPECT_EQ(pfd.revents, POLLOUT);
|
||||
char c;
|
||||
EXPECT_THAT(RetryEINTR(send)(waiting_clients[i].get(), &c, sizeof(c), 0),
|
||||
|
||||
Reference in New Issue
Block a user