diff options
author | vadimt <vadimt@google.com> | 2019-05-23 11:30:09 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-05-23 12:36:32 -0700 |
commit | 0c1ed7cb4cf6f5e46211731bb243bdb308c1eaac (patch) | |
tree | c3a19d8e2b54f4a30414c3e84b5719fe4d65ab34 /tests/src/com/android | |
parent | 9fb137bb7312b22dc58fca5af81ade54d01b3eac (diff) | |
download | android_packages_apps_Trebuchet-0c1ed7cb4cf6f5e46211731bb243bdb308c1eaac.tar.gz android_packages_apps_Trebuchet-0c1ed7cb4cf6f5e46211731bb243bdb308c1eaac.tar.bz2 android_packages_apps_Trebuchet-0c1ed7cb4cf6f5e46211731bb243bdb308c1eaac.zip |
Quick patch for PredictionUiStateManager.applyState interrupting allapps
Constructor of PredictionUiStateManager posts an action in 5 sec, which
may interfere with the process of opening all apps.
Waiting until the posted action happens.
Hopefully this will fix massive flakes.
Bug: 131854153
Change-Id: I6544eae1a3b063c03e78185826c05a76add1f71b
Diffstat (limited to 'tests/src/com/android')
-rw-r--r-- | tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java index d4cfe3aa2..d0ea14268 100644 --- a/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java +++ b/tests/src/com/android/launcher3/ui/TaplTestsLauncher3.java @@ -64,6 +64,8 @@ public class TaplTestsLauncher3 extends AbstractLauncherUiTest { test.mDevice.pressHome(); } test.waitForLauncherCondition("Launcher didn't start", launcher -> launcher != null); + test.waitForLauncherCondition("Prediction never had state update", + launcher -> launcher.debugIsPredictionInitialized()); test.waitForState("Launcher internal state didn't switch to Home", LauncherState.NORMAL); test.waitForResumed("Launcher internal state is still Background"); // Check that we switched to home. |