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

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

Merge "tests: Fix handling exceptions during the setup phase" am: e867c5af am: 65960530

parents 39eaf7e3 65960530
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -126,6 +126,10 @@ public class BassClientServiceTest {

    @After
    public void tearDown() throws Exception {
        if (mBassClientService == null) {
            return;
        }

        TestUtils.stopService(mServiceRule, BassClientService.class);
        mBassClientService = BassClientService.getBassClientService();
        assertThat(mBassClientService).isNull();
+8 −0
Original line number Diff line number Diff line
@@ -132,6 +132,14 @@ public class CsipSetCoordinatorServiceTest {

    @After
    public void tearDown() throws Exception {
        if (mService == null) {
            return;
        }

        if (Looper.myLooper() == null) {
            return;
        }

        stopService();
        mTargetContext.unregisterReceiver(mCsipSetCoordinatorIntentReceiver);
        TestUtils.clearAdapterService(mAdapterService);
+4 −0
Original line number Diff line number Diff line
@@ -170,6 +170,10 @@ public class HapClientTest {

    @After
    public void tearDown() throws Exception {
        if (mService == null) {
            return;
        }

        mService.mCallbacks.unregister(mCallback);

        stopService();
+4 −0
Original line number Diff line number Diff line
@@ -193,6 +193,10 @@ public class LeAudioBroadcastServiceTest {

    @After
    public void tearDown() throws Exception {
        if (mService == null) {
            return;
        }

        stopService();
        mTargetContext.unregisterReceiver(mLeAudioIntentReceiver);
        TestUtils.clearAdapterService(mAdapterService);
+4 −0
Original line number Diff line number Diff line
@@ -216,6 +216,10 @@ public class LeAudioServiceTest {

    @After
    public void tearDown() throws Exception {
        if ((mService == null) || (mAdapter == null)) {
            return;
        }

        mBondedDevices.clear();
        mGroupIntentQueue.clear();
        stopService();
Loading