More robust tests.
https://android-build.corp.google.com/test_investigate/?invocationId=I89000010151050377&testResultId=TR75528603005220067 Bug: 275409981 Test: atest PackageManagerTests Change-Id: Id68a28e9dc12f71286e29822d4b88be88ab03653
This commit is contained in:
@@ -199,10 +199,11 @@ public class PackageManagerTests extends AndroidTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Intent getResult() {
|
public Intent getResult() {
|
||||||
try {
|
while (true) {
|
||||||
return mResult.take();
|
try {
|
||||||
} catch (InterruptedException e) {
|
return mResult.take();
|
||||||
throw new RuntimeException(e);
|
} catch (InterruptedException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user