From 391aaf65c58d77019afb5e0e6c5b85eceac1b6d9 Mon Sep 17 00:00:00 2001 From: "gang.huang" Date: Thu, 23 Feb 2023 15:18:50 +0800 Subject: Change the wait time of setDefaultLauncher from 20s to 60s On some low-performance devices, the method setDefaultLauncher can not be completed whithin 20s Change-Id: Iab78a57d4329095358cad6e79088909b48a22264 --- .../android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java b/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java index b921838e0bfc..4c0361d30d67 100644 --- a/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java +++ b/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ShortcutManagerTestUtils.java @@ -263,7 +263,7 @@ public class ShortcutManagerTestUtils { + instrumentation.getContext().getUserId() + " " + RoleManager.ROLE_HOME + " " + packageName + " 0"); waitUntil("Failed to get shortcut access", - () -> hasShortcutAccess(instrumentation, packageName), 20); + () -> hasShortcutAccess(instrumentation, packageName), 60); } public static void setDefaultLauncher(Instrumentation instrumentation, Context packageContext) { -- cgit v1.2.3-59-g8ed1b