Increase clearPackageData timeout
Apparently, on slow devices the operation may time out. Bug: 353541583 Test: presubmit Flag: TEST_ONLY Change-Id: I6a569810d47452012f597e412311066c33aec7bb
This commit is contained in:
@@ -245,7 +245,7 @@ public abstract class AbstractLauncherUiTest<LAUNCHER_TYPE extends Launcher> {
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user