[automerge] More robust tests. 2p: 21683a939f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23114048

Bug: 275409981
Change-Id: I990ce155fc12d385ca7a56ca5e3547aa558467e9
Merged-In: Id68a28e9dc12f71286e29822d4b88be88ab03653
This commit is contained in:
Presubmit Automerger Backend
2023-05-09 17:04:46 +00:00

View File

@@ -197,10 +197,11 @@ public class PackageManagerTests extends AndroidTestCase {
}
public Intent getResult() {
try {
return mResult.take();
} catch (InterruptedException e) {
throw new RuntimeException(e);
while (true) {
try {
return mResult.take();
} catch (InterruptedException e) {
}
}
}
}