More robust tests.
https://android-build.corp.google.com/test_investigate/?invocationId=I89000010151050377&testResultId=TR75528603005220067
Bug: 290699552
Test: atest PackageManagerTests
Merged-In: Id68a28e9dc12f71286e29822d4b88be88ab03653
Change-Id: Id68a28e9dc12f71286e29822d4b88be88ab03653
(cherry picked from commit 18e9fa7232)
This commit is contained in:
committed by
Song Chun Fan
parent
0ebf094b7c
commit
2a6cec9647
@@ -197,10 +197,11 @@ public class PackageManagerTests extends AndroidTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Intent getResult() {
|
public Intent getResult() {
|
||||||
|
while (true) {
|
||||||
try {
|
try {
|
||||||
return mResult.take();
|
return mResult.take();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
throw new RuntimeException(e);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user