commit | eeeaa6da5688f4018ec8a408f88668bb9c119eea | [log] [tgz] |
---|---|---|
author | Vadim Tryshev <vadimt@google.com> | Tue Jul 16 12:31:52 2024 -0700 |
committer | Vadim Tryshev <vadimt@google.com> | Tue Jul 16 12:31:52 2024 -0700 |
tree | 713294d03b1ba0d31feedd378559911da27dbe5b | |
parent | 1a0406e1beb15fa4060fc94c978ad07421c1724a [diff] |
Increase clearPackageData timeout Apparently, on slow devices the operation may time out. Bug: 353541583 Test: presubmit Flag: TEST_ONLY Change-Id: I6a569810d47452012f597e412311066c33aec7bb
diff --git a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java index 3d253b4..c926ba9 100644 --- a/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +++ b/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java
@@ -245,7 +245,7 @@ Intent.ACTION_PACKAGE_RESTARTED, Intent.ACTION_PACKAGE_DATA_CLEARED); mDevice.executeShellCommand("pm clear " + pkg); - assertTrue(pkg + " didn't restart", count.await(10, TimeUnit.SECONDS)); + assertTrue(pkg + " didn't restart", count.await(20, TimeUnit.SECONDS)); mTargetContext.unregisterReceiver(broadcastReceiver); }