Increase SO_RCVTIMEO for RecvTimeoutWaitAll syscall test

The timeout is currently 200ms and causes occasionally flakes in Fuchsia infra
(https://fxbug.dev/112974). Increase it to 1s.

Fixes #8140

PiperOrigin-RevId: 486141423
This commit is contained in:
Peter Johnston
2022-11-04 08:04:44 -07:00
committed by gVisor bot
parent 5a5a627a3c
commit b9b96522ef
@@ -823,7 +823,7 @@ TEST_P(AllSocketPairTest, RecvTimeoutWaitAll) {
auto sockets = ASSERT_NO_ERRNO_AND_VALUE(NewSocketPair());
struct timeval tv {
.tv_sec = 0, .tv_usec = 200000 // 200ms
.tv_sec = 1, .tv_usec = 0
};
EXPECT_THAT(setsockopt(sockets->second_fd(), SOL_SOCKET, SO_RCVTIMEO, &tv,
sizeof(tv)),