[op] Make TCPNonBlockingConnectClose more reasonable.

This test single handedly causes the syscalls:socket_inet_loopback_test test
variants to take more than an hour to run on some of our testing environments.

Reduce how aggressively this test tries to replicate a fixed flake. This is a
regression test.

PiperOrigin-RevId: 382849039
This commit is contained in:
Ayush Ranjan
2021-07-02 18:47:48 -07:00
committed by gVisor bot
parent 3d32a05a35
commit add8bca5ba
+1 -1
View File
@@ -707,7 +707,7 @@ TEST_P(SocketInetLoopbackTest, TCPNonBlockingConnectClose) {
// Try many iterations to catch a race with socket close and handshake
// completion.
for (int i = 0; i < 1000; ++i) {
for (int i = 0; i < 100; ++i) {
FileDescriptor client = ASSERT_NO_ERRNO_AND_VALUE(
Socket(connector.family(), SOCK_STREAM | SOCK_NONBLOCK, IPPROTO_TCP));
ASSERT_THAT(