Merge "More robust tests." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0fe4eb97e3
@@ -199,10 +199,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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user