diff --git a/quickstep/tests/src/com/android/quickstep/NavigationModeSwitchRule.java b/quickstep/tests/src/com/android/quickstep/NavigationModeSwitchRule.java index 40265c47e2..0f6671d18c 100644 --- a/quickstep/tests/src/com/android/quickstep/NavigationModeSwitchRule.java +++ b/quickstep/tests/src/com/android/quickstep/NavigationModeSwitchRule.java @@ -188,7 +188,7 @@ public class NavigationModeSwitchRule implements TestRule { SYS_UI_NAVIGATION_MODE.removeModeChangeListener(listener)); Wait.atMost(() -> "Navigation mode didn't change to " + expectedMode, - () -> currentSysUiNavigationMode() == expectedMode, 60000 /* b/148422894 */, + () -> currentSysUiNavigationMode() == expectedMode, WAIT_TIME_MS, launcher); // b/139137636 // assertTrue(launcher, "Navigation mode didn't change to " + expectedMode, @@ -202,7 +202,7 @@ public class NavigationModeSwitchRule implements TestRule { Wait.atMost(() -> "Switching nav mode: " + launcher.getNavigationModeMismatchError(), () -> launcher.getNavigationModeMismatchError() == null, - 60000 /* b/148422894 */, launcher); + WAIT_TIME_MS, launcher); AbstractLauncherUiTest.checkDetectedLeaks(launcher); return true; } diff --git a/tests/src/com/android/launcher3/util/rule/FailureInvestigator.java b/tests/src/com/android/launcher3/util/rule/FailureInvestigator.java index e4f520f891..77546de3cc 100644 --- a/tests/src/com/android/launcher3/util/rule/FailureInvestigator.java +++ b/tests/src/com/android/launcher3/util/rule/FailureInvestigator.java @@ -87,12 +87,6 @@ class FailureInvestigator { return 145935261; } - if (matches("java\\.lang\\.AssertionError\\: http\\:\\/\\/go\\/tapl \\: want to get " - + "workspace object; Presence of recents button doesn't match the interaction " - + "mode, mode\\=ZERO_BUTTON, hasRecents\\=true", exception)) { - return 148422894; - } - final String logSinceBoot; try { final String systemBootTime = diff --git a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java index a32d2f9ba5..663d561f53 100644 --- a/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +++ b/tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java @@ -549,13 +549,7 @@ public final class LauncherInstrumentation { assertEquals("Unexpected display rotation", mExpectedRotation, mDevice.getDisplayRotation()); - // b/148422894 - String error = null; - for (int i = 0; i != 600; ++i) { - error = getNavigationModeMismatchError(); - if (error == null) break; - sleep(100); - } + final String error = getNavigationModeMismatchError(); assertTrue(error, error == null); log("verifyContainerType: " + containerType);