Change the wait time of setDefaultLauncher from 20s to 60s

On some low-performance devices, the method setDefaultLauncher can not be completed whithin 20s

Bug: 270519786
Change-Id: Iab78a57d4329095358cad6e79088909b48a22264
Merged-In: Iab78a57d4329095358cad6e79088909b48a22264
This commit is contained in:
gang.huang
2023-02-23 15:18:50 +08:00
committed by Pinyao Ting
parent 55ff235419
commit 4df0bbaf93

View File

@@ -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) {