Merge "fix(non linear font scaling): fix test timeout flakiness" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c163059eb9
@@ -137,7 +137,7 @@ public class FontScaleConverterActivityTest {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
PollingCheck.waitFor(/* timeout= */ 5000, () -> {
|
PollingCheck.waitFor(/* timeout= */ 7000, () -> {
|
||||||
AtomicBoolean isActivityAtCorrectScale = new AtomicBoolean(false);
|
AtomicBoolean isActivityAtCorrectScale = new AtomicBoolean(false);
|
||||||
rule.getScenario().onActivity(activity ->
|
rule.getScenario().onActivity(activity ->
|
||||||
isActivityAtCorrectScale.set(
|
isActivityAtCorrectScale.set(
|
||||||
@@ -146,12 +146,7 @@ public class FontScaleConverterActivityTest {
|
|||||||
.fontScale == fontScale
|
.fontScale == fontScale
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
return isActivityAtCorrectScale.get() && InstrumentationRegistry
|
return isActivityAtCorrectScale.get();
|
||||||
.getInstrumentation()
|
|
||||||
.getContext()
|
|
||||||
.getResources()
|
|
||||||
.getConfiguration()
|
|
||||||
.fontScale == fontScale;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user