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
This commit is contained in:
JW Wang
2019-10-22 10:23:32 +08:00
parent 9f7c1aa39d
commit 02e8f06e4c

View File

@@ -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");