From ae3039ea9ff163004523acc1d288cf4a7876dfc8 Mon Sep 17 00:00:00 2001 From: Andrew Cole Date: Thu, 25 Apr 2024 16:41:14 -0700 Subject: [PATCH] Removing post submit only rule Now that FolderIconLoadTest is no longer flakey we can remove the post submit only test stability rule and allow the tests to be run in presubmit. Flag: None Bug: b/319923578 Test: FolderIconLoadTest.kt Change-Id: I115193dfef855fedbc204d0cc9d3a908b56f8eec --- .../android/launcher3/model/FolderIconLoadTest.kt | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/src/com/android/launcher3/model/FolderIconLoadTest.kt b/tests/src/com/android/launcher3/model/FolderIconLoadTest.kt index 2e209a48c4..c4a4c9b7b6 100644 --- a/tests/src/com/android/launcher3/model/FolderIconLoadTest.kt +++ b/tests/src/com/android/launcher3/model/FolderIconLoadTest.kt @@ -24,13 +24,11 @@ import com.android.launcher3.util.LauncherLayoutBuilder import com.android.launcher3.util.LauncherModelHelper import com.android.launcher3.util.LauncherModelHelper.* import com.android.launcher3.util.TestUtil -import com.android.launcher3.util.rule.TestStabilityRule import com.google.common.truth.Truth.assertThat import com.google.common.truth.Truth.assertWithMessage import java.util.concurrent.CountDownLatch import org.junit.After import org.junit.Before -import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith @@ -58,8 +56,6 @@ class FolderIconLoadTest { TEST_ACTIVITY14 ) - @get:Rule(order = 0) val testStabilityRule = TestStabilityRule() - @Before fun setUp() { modelHelper = LauncherModelHelper() @@ -91,9 +87,6 @@ class FolderIconLoadTest { @Test @Throws(Exception::class) - @TestStabilityRule.Stability( - flavors = TestStabilityRule.LOCAL or TestStabilityRule.PLATFORM_POSTSUBMIT - ) // b/319923578 fun folderLoadedWithHighRes_max_3x3() { val idp = LauncherAppState.getIDP(modelHelper.sandboxContext) idp.numFolderColumns = intArrayOf(3, 3, 3, 3) @@ -107,9 +100,6 @@ class FolderIconLoadTest { @Test @Throws(Exception::class) - @TestStabilityRule.Stability( - flavors = TestStabilityRule.LOCAL or TestStabilityRule.PLATFORM_POSTSUBMIT - ) // b/319923578 fun folderLoadedWithHighRes_max_4x4() { val idp = LauncherAppState.getIDP(modelHelper.sandboxContext) idp.numFolderColumns = intArrayOf(4, 4, 4, 4) @@ -123,10 +113,6 @@ class FolderIconLoadTest { @Test @Throws(Exception::class) - // Stress tests are long. We permanently demote them from presubmit to match the presubmit SLO. - @TestStabilityRule.Stability( - flavors = TestStabilityRule.LOCAL or TestStabilityRule.PLATFORM_POSTSUBMIT - ) // b/319923578 fun folderLoadedWithHighRes_differentFolderConfigurations() { val idp = LauncherAppState.getIDP(modelHelper.sandboxContext) idp.numFolderColumns = intArrayOf(4, 3, 4, 4)