We no longer block on the handler thread in getAvailableRollbacks. That means it is possible we see an available rollback left over from a previous test run. Update the test to ensure previous rollbacks are removed and give sufficient time to make a new rollback available before concluding that no rollback will be made available in this case. Test: atest RollbackTest:com.android.tests.rollback.RollbackTest#testEnableRollbackTimeoutFailsRollback Change-Id: Id94d5452836b07d6f802758bd0dfdd3c276a3c05
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