Merge "Run leak detector in test isolation rule" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
34291f07fb
@@ -18,6 +18,7 @@ package com.android.launcher3.util.rule;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.android.launcher3.tapl.LauncherInstrumentation;
|
||||
import com.android.launcher3.ui.AbstractLauncherUiTest;
|
||||
|
||||
import org.junit.rules.TestRule;
|
||||
import org.junit.runner.Description;
|
||||
@@ -42,6 +43,7 @@ public class TestIsolationRule implements TestRule {
|
||||
base.evaluate();
|
||||
// Make sure that Launcher workspace looks correct.
|
||||
mLauncher.goHome();
|
||||
AbstractLauncherUiTest.checkDetectedLeaks(mLauncher);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user