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

Commit 02e8f06e authored by JW Wang's avatar JW Wang
Browse files

Remove some getDevice().waitForDeviceAvailable()s

Remove getDevice().waitForDeviceAvailable() that follows
getDevice().reboot() for reboot() has called waitForDeviceAvailable()
internally.

See b/143114522 #1 for more details.

Bug: 143114522
Test: atest StagedRollbackTest
Change-Id: I19d3648947435b8d5a10d09736b170fd8be8be47
parent 9f7c1aa3
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -94,7 +94,6 @@ public class StagedRollbackTest extends BaseHostJUnit4Test {

        // Reboot device to activate staged package
        getDevice().reboot();
        getDevice().waitForDeviceAvailable();

        runPhase("testNativeWatchdogTriggersRollback_Phase2");

@@ -134,7 +133,6 @@ public class StagedRollbackTest extends BaseHostJUnit4Test {
        Thread.sleep(5000);
        // Reboot device to activate staged package
        getDevice().reboot();
        getDevice().waitForDeviceAvailable();

        // Verify rollback was enabled
        runPhase("testNetworkFailedRollback_Phase2");
@@ -180,7 +178,6 @@ public class StagedRollbackTest extends BaseHostJUnit4Test {
        Thread.sleep(5000);
        // Reboot device to activate staged package
        getDevice().reboot();
        getDevice().waitForDeviceAvailable();

        // Verify rollback was enabled
        runPhase("testNetworkPassedDoesNotRollback_Phase2");