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

Commit d83a71f4 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

laudio: Fix unit test

Wait on SyncMainLoop before verifing results. Otherwise a test
could go to TearDown and incorrectly fail.

Bug: 273285484
Test: atest bluetooth_le_audio_client_test
Test: atest BluetoothInstrumentationTests
Tag: #feature
Change-Id: I12db450972cd912833f2790a14c396706e608534
parent b4707b67
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3373,6 +3373,10 @@ TEST_F(UnicastTest, DisconnectDeviceWhenGettingConnectionReady) {
      .Times(0);

  LeAudioClient::Get()->Disconnect(test_address0);
  SyncOnMainLoop();

  Mock::VerifyAndClearExpectations(&mock_gatt_queue_);
  Mock::VerifyAndClearExpectations(&mock_gatt_interface_);
}

TEST_F(UnicastTest, RemoveWhileStreaming) {