[EventEngine] Fix IOCP test under load (#32328)

pull/32331/head
AJ Heller 2 years ago committed by GitHub
parent 9dd6a98ed6
commit b453af1ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      test/core/event_engine/windows/iocp_test.cc

@ -341,9 +341,12 @@ TEST_F(IOCPTest, StressTestThousandsOfSockets) {
memset(pserver->write_info()->overlapped(), 0, sizeof(OVERLAPPED));
int status = WSASend(pserver->socket(), &write_wsabuf, 1, &bytes_sent,
0, pserver->write_info()->overlapped(), NULL);
EXPECT_EQ(status, 0);
if (status != 0) {
LogErrorMessage(WSAGetLastError(), "WSASend");
int wsa_error = WSAGetLastError();
if (wsa_error != WSA_IO_PENDING) {
LogErrorMessage(wsa_error, "WSASend");
FAIL() << "Error in WSASend. See logs";
}
}
}
}

Loading…
Cancel
Save