Merge "Attempts fixing test flakiness" into udc-qpr-dev am: 03514987c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24032424 Change-Id: Ica90dde56400662fa8a6b95132d410f513338dae Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -884,12 +884,13 @@ public class ActivityThreadTest {
|
||||
mConfig.setTo(config);
|
||||
++mNumOfConfigChanges;
|
||||
|
||||
if (mConfigLatch != null) {
|
||||
final CountDownLatch configLatch = mConfigLatch;
|
||||
if (configLatch != null) {
|
||||
if (mTestLatch != null) {
|
||||
mTestLatch.countDown();
|
||||
}
|
||||
try {
|
||||
mConfigLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS);
|
||||
configLatch.await(TIMEOUT_SEC, TimeUnit.SECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user