Merge "More robust tests." into tm-qpr-dev

This commit is contained in:
Alex Buynytskyy
2023-05-15 22:32:48 +00:00
committed by Android (Google) Code Review

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