testEnableRollbackTimeoutFailsRollback works by setting the enable rollback timeout to 1 millisecond so that we will always time out, but the test is failing some times because apparently we enable rollback within the 1 millisecond limit. Reduce the timeout to 0 milliseconds to try and reduce test flakiness. Before lowering the timeout, the test failure was easy to reproduce locally. After lowering the timeout I have not once been able to reproduce the test failure locally. Bug: 134373106 Test: atest RollbackTest:com.android.tests.rollback.RollbackTest#testEnableRollbackTimeoutFailsRollback Change-Id: Ia25561831616dd2f2644743a399b49e35d5d4ea4
This directory contains a test for the rollback manager service. Directory structure =================== RollbackTest - device driven test for rollbacks not involving staged rollbacks. StagedRollbackTest - device driven test for staged rollbacks. TestApp - source for dummy apks used in testing. TestApex - source for dummy apex modules used in testing. Running the tests ================= You can manually run the tests as follows: atest RollbackTest atest StagedRollbackTest