Merge "Attempts fixing test flakiness" into udc-qpr-dev
This commit is contained in:
@@ -884,12 +884,13 @@ public class ActivityThreadTest {
|
|||||||
mConfig.setTo(config);
|
mConfig.setTo(config);
|
||||||
++mNumOfConfigChanges;
|
++mNumOfConfigChanges;
|
||||||
|
|
||||||
if (mConfigLatch != null) {
|
final CountDownLatch configLatch = mConfigLatch;
|
||||||
|
if (configLatch != null) {
|
||||||
if (mTestLatch != null) {
|
if (mTestLatch != null) {
|
||||||
mTestLatch.countDown();
|
mTestLatch.countDown();
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
mConfigLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS);
|
configLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
throw new IllegalStateException(e);
|
throw new IllegalStateException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user