commit | a7eea562fb42d52fe81a4e3631f924c91b663fc4 | [log] [tgz] |
---|---|---|
author | Jon Miranda <jonmiranda@google.com> | Fri Sep 06 12:55:43 2019 -0700 |
committer | Jon Miranda <jonmiranda@google.com> | Fri Sep 06 12:55:43 2019 -0700 |
tree | f4feaf10d38e8a048d8e1875a0122a90ada8aa02 | |
parent | f5197fce3db89f723863c0fb9aa6bd033a7d064e [diff] |
Fix test bug where launcher throws NPE because it isnt loaded yet. Bug: 140635319 Change-Id: Iea90c6816c670d58acf79114fc725602ddc9d0b1
diff --git a/tests/src/com/android/launcher3/compat/PromiseIconUiTest.java b/tests/src/com/android/launcher3/compat/PromiseIconUiTest.java index 7ef946d..efbd9c9 100644 --- a/tests/src/com/android/launcher3/compat/PromiseIconUiTest.java +++ b/tests/src/com/android/launcher3/compat/PromiseIconUiTest.java
@@ -48,6 +48,7 @@ public void setUp() throws Exception { super.setUp(); mDevice.pressHome(); + waitForLauncherCondition("Launcher didn't start", launcher -> launcher != null); waitForState("Launcher internal state didn't switch to Home", LauncherState.NORMAL); mSessionId = -1; }