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

Commit bfea4884 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 am: 6cfa3a2e

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

Change-Id: Ifecb1011ea27c5f70dcfff72cc88f408a87b3549
parents abdcdf5f 6cfa3a2e
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());