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

Commit 3f21ba34 authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Merge "tests: Fix handling exceptions during the setup phase" into tm-d1-dev am: 33032eda

parents 43b8773c 33032eda
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
@@ -221,6 +221,10 @@ public class LeAudioServiceTest {

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

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