Skip to content
Snippets Groups Projects
Commit 8736c5f1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove non-determinism in socket unit test."

parents ad3b9c36 ec4abb2e
No related branches found
No related tags found
No related merge requests found
......@@ -302,10 +302,6 @@ TEST_F(PosixSocketTest, noConnectWhenNotCallingStart) {
// Should timeout, as we never invoke the callback that accepts the socket.
ASSERT_FALSE(cv.wait_for(lk, 250ms, [&] { return connected; }));
// Close the server socket, which will reject the socket.
pass_.Close();
ASSERT_FALSE(socket->Connected());
}
ASSERT_EQ(1, (int)connections.size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment