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

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

leaudio: Minor state_machine_test fix

Use Assert instead of return

Bug: 150670922
Test: atest --host bluetooth_le_audio_test bluetooth_le_audio_client_test
Sponsor: @jpawlowski
Change-Id: Iacd3d5900c4083583f0e4315e536a51c81192264
parent bff9e091
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -2401,18 +2401,16 @@ TEST_F(StateMachineTest, testAttachDeviceToTheStream) {
      if (!lastDevice->ConfigureAses(
              ent, group->GetCurrentContextType(), &sink_num_of_active_ases,
              sink_group_audio_locations, source_group_audio_locations, true)) {
        LOG(INFO) << __func__ << " Could not set sink configuration of "
        FAIL() << __func__ << " Could not set sink configuration of "
               << stream_conf->conf->name;
        return;
      }
    } else {
      /* Source*/
      if (!lastDevice->ConfigureAses(
              ent, group->GetCurrentContextType(), &source_num_of_active_ases,
              sink_group_audio_locations, source_group_audio_locations, true)) {
        LOG(INFO) << __func__ << " Could not set source configuration of "
        FAIL() << __func__ << " Could not set source configuration of "
               << stream_conf->conf->name;
        return;
      }
    }
  }