Merge "Attempts fixing test flakiness" into udc-qpr-dev

This commit is contained in:
Louis Chang
2023-07-13 00:12:46 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
} }