Removing pss checks in memory tests

Test: presubmit
Bug: 185181057
Change-Id: I4f504f9540b80c62cd3f1024ff1d1b57102f2ed6
This commit is contained in:
vadimt
2021-05-12 18:29:23 -07:00
parent 91c27f28c6
commit e2801bcb77
4 changed files with 5 additions and 47 deletions

View File

@@ -138,7 +138,7 @@ public abstract class AbstractLauncherUiTest {
// Check whether activity leak detector has found leaked activities.
Wait.atMost(AbstractLauncherUiTest::getActivityLeakErrorMessage,
() -> {
launcher.getTotalPssKb(); // Triggers GC
launcher.forceGc();
return MAIN_EXECUTOR.submit(
() -> ACTIVITY_LEAK_TRACKER.noLeakedActivities()).get();
}, DEFAULT_UI_TIMEOUT, launcher);