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

Commit 7be665f8 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Fix locally failing tests.

Delay should be added on test thread, not on HandlerThread

Bug: 25691379
Change-Id: Ibe902cfe10a3a1d4cd3519732b2753c6575e19eb
parent 6a5e8b0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@ public class GsmCdmaPhoneTest extends TelephonyTest {
        public void onLooperPrepared() {
            mPhoneUT = new GsmCdmaPhone(mContext, mSimulatedCommands, mNotifier, true, 0,
                    PhoneConstants.PHONE_TYPE_GSM, mTelephonyComponentFactory);
            TelephonyTestUtils.waitForMs(50);
            setReady(true);
        }
    }
@@ -78,6 +77,7 @@ public class GsmCdmaPhoneTest extends TelephonyTest {

        new GsmCdmaPhoneTestHandler(TAG).start();
        waitUntilReady();
        TelephonyTestUtils.waitForMs(50);
    }

    @After
+3 −3
Original line number Diff line number Diff line
@@ -57,9 +57,6 @@ public class UiccControllerTest extends TelephonyTest {
            /* create a new UICC Controller associated with the simulated Commands */
            mUiccControllerUT = UiccController.make(mContext,
                    new CommandsInterface[]{mSimulatedCommands});
            /* expected to get new UiccCards being created
            wait till the async result and message delay */
            TelephonyTestUtils.waitForMs(500);
            setReady(true);
        }
    }
@@ -97,6 +94,9 @@ public class UiccControllerTest extends TelephonyTest {
        mSimulatedCommands.setIccCardStatus(mIccCardStatus);
        new UiccControllerHandlerThread(TAG).start();
        waitUntilReady();
        /* expected to get new UiccCards being created
        wait till the async result and message delay */
        TelephonyTestUtils.waitForMs(50);
    }

    @After