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

Commit 131092fb authored by Sarah Chin's avatar Sarah Chin Committed by Automerger Merge Worker
Browse files

Merge "Remove remaining messages after Telephony tests end" am: c50f9a2e

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2032428

Change-Id: I6a23be36e01990b77919a157c833002e623e42ad
parents f9a518bc c50f9a2e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -350,6 +350,7 @@ public class ServiceStateTrackerTest extends TelephonyTest {

    @After
    public void tearDown() throws Exception {
        sst.removeCallbacksAndMessages(null);
        sst = null;
        mSSTTestHandler.quit();
        mSSTTestHandler.join();
+6 −0
Original line number Diff line number Diff line
@@ -839,6 +839,12 @@ public abstract class TelephonyTest {
    }

    protected void tearDown() throws Exception {
        // Clear all remaining messages
        if (!mTestableLoopers.isEmpty()) {
            for (TestableLooper looper : mTestableLoopers) {
                looper.getLooper().quit();
            }
        }
        // Ensure there are no references to handlers between tests.
        PhoneConfigurationManager.unregisterAllMultiSimConfigChangeRegistrants();
        // unmonitor TestableLooper for TelephonyTest class