From 4bc503ca6d1fc06fe99c86755b92845e802c5534 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Wed, 21 Feb 2024 10:36:14 -0800 Subject: [PATCH] Demote unstable test testSessionUpdate_updates_pending_apps from presubmit Bug: 325283522 Test: presubmit Flag: N/A Change-Id: I4a75f18c2d178508cb98b4c2e7decc5cca7f6562 --- .../launcher3/model/CacheDataUpdatedTaskTest.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/src/com/android/launcher3/model/CacheDataUpdatedTaskTest.java b/tests/src/com/android/launcher3/model/CacheDataUpdatedTaskTest.java index 5283c6b25d..8631f03c28 100644 --- a/tests/src/com/android/launcher3/model/CacheDataUpdatedTaskTest.java +++ b/tests/src/com/android/launcher3/model/CacheDataUpdatedTaskTest.java @@ -11,11 +11,11 @@ import static com.android.launcher3.util.LauncherModelHelper.TEST_ACTIVITY; import static com.android.launcher3.util.LauncherModelHelper.TEST_ACTIVITY2; import static com.android.launcher3.util.LauncherModelHelper.TEST_ACTIVITY3; import static com.android.launcher3.util.LauncherModelHelper.TEST_PACKAGE; +import static com.android.launcher3.util.rule.TestStabilityRule.LOCAL; +import static com.android.launcher3.util.rule.TestStabilityRule.PLATFORM_POSTSUBMIT; import static com.android.launcher3.util.TestUtil.DUMMY_CLASS_NAME; import static com.android.launcher3.util.TestUtil.DUMMY_PACKAGE; import static com.android.launcher3.util.TestUtil.runOnExecutorSync; -import static com.android.launcher3.util.rule.TestStabilityRule.LOCAL; -import static com.android.launcher3.util.rule.TestStabilityRule.PLATFORM_POSTSUBMIT; import static com.google.common.truth.Truth.assertThat; @@ -40,13 +40,14 @@ import com.android.launcher3.util.IntSet; import com.android.launcher3.util.LauncherLayoutBuilder; import com.android.launcher3.util.LauncherModelHelper; import com.android.launcher3.util.PackageUserKey; -import com.android.launcher3.util.rule.TestStabilityRule; import com.android.launcher3.util.TestUtil; +import com.android.launcher3.util.rule.TestStabilityRule; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; +import org.junit.rules.TestRule; import org.junit.runner.RunWith; import java.io.IOException; @@ -61,6 +62,9 @@ import java.util.List; @RunWith(AndroidJUnit4.class) public class CacheDataUpdatedTaskTest { + @Rule(order = 0) + public TestRule testStabilityRule = new TestStabilityRule(); + @Rule public final CheckFlagsRule mCheckFlagsRule = DeviceFlagsValueProvider.createCheckFlagsRule(); @@ -157,6 +161,7 @@ public class CacheDataUpdatedTaskTest { } @Test + @TestStabilityRule.Stability(flavors = LOCAL | PLATFORM_POSTSUBMIT) // b/325283522 public void testSessionUpdate_updates_pending_apps() { // Run on model executor so that no other task runs in the middle. runOnExecutorSync(MODEL_EXECUTOR, () -> {