Loading tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/StagedRollbackTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -251,11 +251,11 @@ public class StagedRollbackTest { @Test public void testNetworkFailedRollback_Phase3() throws Exception { // Sleep for > health check deadline // Sleep for > health check deadline (120s to trigger rollback + 120s to reboot) // The device is expected to reboot during sleeping. This device method will fail and // the host will catch the assertion. If reboot doesn't happen, the host will fail the // assertion. Thread.sleep(TimeUnit.SECONDS.toMillis(120)); Thread.sleep(TimeUnit.SECONDS.toMillis(240)); } @Test Loading tests/RollbackTest/StagedRollbackTest/src/com/android/tests/rollback/host/StagedRollbackTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import static org.testng.Assert.assertThrows; import com.android.tradefed.testtype.DeviceJUnit4ClassRunner; import com.android.tradefed.testtype.junit4.BaseHostJUnit4Test; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; Loading @@ -47,6 +48,11 @@ public class StagedRollbackTest extends BaseHostJUnit4Test { phase)); } @Before public void setUp() throws Exception { getDevice().reboot(); } /** * Tests watchdog triggered staged rollbacks involving only apks. */ Loading Loading
tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/StagedRollbackTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -251,11 +251,11 @@ public class StagedRollbackTest { @Test public void testNetworkFailedRollback_Phase3() throws Exception { // Sleep for > health check deadline // Sleep for > health check deadline (120s to trigger rollback + 120s to reboot) // The device is expected to reboot during sleeping. This device method will fail and // the host will catch the assertion. If reboot doesn't happen, the host will fail the // assertion. Thread.sleep(TimeUnit.SECONDS.toMillis(120)); Thread.sleep(TimeUnit.SECONDS.toMillis(240)); } @Test Loading
tests/RollbackTest/StagedRollbackTest/src/com/android/tests/rollback/host/StagedRollbackTest.java +6 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import static org.testng.Assert.assertThrows; import com.android.tradefed.testtype.DeviceJUnit4ClassRunner; import com.android.tradefed.testtype.junit4.BaseHostJUnit4Test; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; Loading @@ -47,6 +48,11 @@ public class StagedRollbackTest extends BaseHostJUnit4Test { phase)); } @Before public void setUp() throws Exception { getDevice().reboot(); } /** * Tests watchdog triggered staged rollbacks involving only apks. */ Loading