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

Commit a6262d8b authored by JW Wang's avatar JW Wang
Browse files

Fix flaky tests (3/n)

The next test will have wrong initial conditions if the test apps
installed by the previous test are not removed.

Bug: 173194203
Test: atest StagedInstallInternalTest
Change-Id: I879324e5e046e34d97030c0d3a09f81cee26c3ee
parent eb032a1f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import androidx.test.platform.app.InstrumentationRegistry;
import com.android.cts.install.lib.Install;
import com.android.cts.install.lib.InstallUtils;
import com.android.cts.install.lib.TestApp;
import com.android.cts.install.lib.Uninstall;

import org.junit.After;
import org.junit.Before;
@@ -108,6 +109,7 @@ public class StagedInstallInternalTest {
    @Test
    public void cleanUp() throws Exception {
        Files.deleteIfExists(mTestStateFile.toPath());
        Uninstall.packages(TestApp.A, TestApp.B);
    }

    @Test