Workaround for activity manager crashing when trying to start an app

It flakes when one of the tests starts calculator while there zero
activities in the system.

Bug: 143488140
Change-Id: Id9d350f0de8a83eb50e35e9efa4226b8d45ca641
This commit is contained in:
vadimt 2020-06-19 18:11:10 -07:00 committed by Vadim Tryshev
parent b53764bd4b
commit 8914c51660
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,10 @@ public class FallbackRecentsTest {
TestCommandReceiver.GET_SYSTEM_HEALTH_MESSAGE, startTime.toString()).
getString("result"));
}
// b/143488140
mDevice.pressHome();
mDevice.waitForIdle();
startAppFast(resolveSystemApp(Intent.CATEGORY_APP_CALCULATOR));
}
// b/143488140