Merge "Not crashing tests when a test fails to deinitialize" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot
2020-01-29 21:46:27 +00:00
committed by Android (Google) Code Review
2 changed files with 31 additions and 10 deletions

View File

@@ -184,16 +184,8 @@ public abstract class AbstractLauncherUiTest {
@After
public void verifyLauncherState() {
try {
// Limits UI tests affecting tests running after them.
mLauncher.waitForLauncherInitialized();
} catch (Throwable t) {
Log.e(TAG,
"Couldn't deinit after a test, exiting tests, see logs for failures that "
+ "could have caused this",
t);
exit(1);
}
// Limits UI tests affecting tests running after them.
mLauncher.waitForLauncherInitialized();
}
protected void clearLauncherData() throws IOException, InterruptedException {