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

Commit f989210f authored by Sebastian Franco's avatar Sebastian Franco
Browse files

Remove test to postsubmit while they are flaky

Bug: 332527963
Test: ReorderAlgorithmUnitTest
Flag: TEST_ONLY
Change-Id: I29d631ba7dfe7f2c3a5323bfb414cb4da5b3321b
parent d064e58f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -17,6 +17,9 @@ package com.android.launcher3.celllayout;

import static androidx.test.core.app.ApplicationProvider.getApplicationContext;

import static com.android.launcher3.util.rule.TestStabilityRule.LOCAL;
import static com.android.launcher3.util.rule.TestStabilityRule.PLATFORM_POSTSUBMIT;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

@@ -37,6 +40,8 @@ import com.android.launcher3.celllayout.board.WidgetRect;
import com.android.launcher3.celllayout.testgenerator.RandomBoardGenerator;
import com.android.launcher3.celllayout.testgenerator.RandomMultiBoardGenerator;
import com.android.launcher3.util.ActivityContextWrapper;
import com.android.launcher3.util.rule.TestStabilityRule;
import com.android.launcher3.util.rule.TestStabilityRule.Stability;
import com.android.launcher3.views.DoubleShadowBubbleTextView;

import org.junit.Rule;
@@ -67,6 +72,9 @@ public class ReorderAlgorithmUnitTest {
    private static final int TOTAL_OF_CASES_GENERATED = 300;
    private Context mApplicationContext;

    @Rule
    public TestStabilityRule mTestStabilityRule = new TestStabilityRule();

    @Rule
    public UnitTestCellLayoutBuilderRule mCellLayoutBuilder = new UnitTestCellLayoutBuilderRule();

@@ -74,6 +82,7 @@ public class ReorderAlgorithmUnitTest {
     * This test reads existing test cases and makes sure the CellLayout produces the same
     * output for each of them for a given input.
     */
    @Stability(flavors = LOCAL | PLATFORM_POSTSUBMIT)
    @Test
    public void testAllCases() throws IOException {
        List<ReorderAlgorithmUnitTestCase> testCases = getTestCases(
@@ -116,6 +125,7 @@ public class ReorderAlgorithmUnitTest {
    /**
     * Same as above but testing the Multipage CellLayout.
     */
    @Stability(flavors = LOCAL | PLATFORM_POSTSUBMIT)
    @Test
    public void generateValidTests_Multi() {
        Random generator = new Random(SEED);