Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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());