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

Commit 11bacc39 authored by Makoto Onuki's avatar Makoto Onuki Committed by android-build-merger
Browse files

Fix timeout in a test utility method am: a210ccfa am: 56542a3e

am: 8cfffbba

Change-Id: Icb6bed68551dcbc5195dac55e06a84960b39a292
parents fe46ef5e 8cfffbba
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1055,6 +1055,9 @@ public class ShortcutManagerTestUtils {
    public static void retryUntil(BooleanSupplier checker, String message) {
        final long timeOut = System.currentTimeMillis() + 30 * 1000; // wait for 30 seconds.
        while (!checker.getAsBoolean()) {
            if (System.currentTimeMillis() > timeOut) {
                break;
            }
            try {
                Thread.sleep(200);
            } catch (InterruptedException ignore) {