Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7772c326 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Run leak detector in test isolation rule

This will help to fail the test causing the leak, not the next one

Bug: 187761685
Test: presubmit
Flag: N/A
Change-Id: I07e2457a9c8b9794d9c3ecc4764500dcdd3bbb10
parent 9ce1a90b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);
            }
        };
    }