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

Commit b4540e2d authored by JW Wang's avatar JW Wang
Browse files

Reduce the health check timeout (2/n)

b/143035398 #3 shows the network stack will pass health check anyway
even there is not internet connected. We have to reduce the timeout and
finish the test before the health check is passed.

Bug: 143035398
Test: atest StagedRollbackTest
Change-Id: I39a84b06a19648a3ec19c5f334bed9ef4bce1533
parent 05ebdd40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ public class StagedRollbackTest {
        // 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(260));
        Thread.sleep(TimeUnit.SECONDS.toMillis(120));
    }

    @Test
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ public class StagedRollbackTest extends BaseHostJUnit4Test {
        runPhase("testNetworkFailedRollback_Phase1");
        // Reduce health check deadline
        getDevice().executeShellCommand("device_config put rollback "
                + "watchdog_request_timeout_millis 300000");
                + "watchdog_request_timeout_millis 120000");
        // Simulate re-installation of new NetworkStack with rollbacks enabled
        getDevice().executeShellCommand("pm install -r --staged --enable-rollback "
                + "/system/priv-app/NetworkStack/NetworkStack.apk");