Merge "Merge "fix(non linear font scaling): fix test timeout flakiness" into udc-qpr-dev am: c163059eb9" into udc-qpr-dev-plus-aosp

This commit is contained in:
Automerger Merge Worker
2023-06-22 20:49:36 +00:00
committed by Android (Google) Code Review

View File

@@ -137,7 +137,7 @@ public class FontScaleConverterActivityTest {
);
});
PollingCheck.waitFor(/* timeout= */ 5000, () -> {
PollingCheck.waitFor(/* timeout= */ 7000, () -> {
AtomicBoolean isActivityAtCorrectScale = new AtomicBoolean(false);
rule.getScenario().onActivity(activity ->
isActivityAtCorrectScale.set(
@@ -146,12 +146,7 @@ public class FontScaleConverterActivityTest {
.fontScale == fontScale
)
);
return isActivityAtCorrectScale.get() && InstrumentationRegistry
.getInstrumentation()
.getContext()
.getResources()
.getConfiguration()
.fontScale == fontScale;
return isActivityAtCorrectScale.get();
});
}