Merge "fix(non linear font scaling): fix test timeout flakiness" into udc-qpr-dev am: c163059eb9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23770301 Change-Id: I9dea2df805e160af7f5059b477de2cc9127a0693 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user