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

Commit 6cfa3a2e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove non-determinism in socket unit test." am: 8736c5f1

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1804776

Change-Id: I8709d740afd81f1268095a7df80fd40fe9955db7
parents 603d5ba5 8736c5f1
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());