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

Commit 27f0b773 authored by Mike Schneider's avatar Mike Schneider
Browse files

Revert "Increasing wait time for Launcher restart after enabling test provider"

This reverts commit a333756f.

Reason for revert: Seems to permanently break flickr tests with a timeout (https://android-build.corp.google.com/test_investigate/?invocationId=I84700010216659574&testResultId=TR17229044551287787)

Bug: 310269045
Change-Id: I49631dc10111e7bcd4b663ec5b26ee79885da246
parent a333756f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -273,11 +273,11 @@ public final class LauncherInstrumentation {
                    mDevice.executeShellCommand(
                            "pm enable --user " + userId + " " + cn.flattenToString());
                    // Wait for Launcher restart after enabling test provider.
                    for (int i = 0; i < 600; ++i) {
                    for (int i = 0; i < 100; ++i) {
                        final String currentPid = mDevice.executeShellCommand(launcherPidCommand)
                                .replaceAll("\\s", "");
                        if (!currentPid.isEmpty() && !currentPid.equals(initialPid)) break;
                        if (i == 599) fail("Launcher didn't restart after enabling test provider");
                        if (i == 99) fail("Launcher didn't restart after enabling test provider");
                        SystemClock.sleep(100);
                    }
                } catch (IOException e) {