fix(non linear font scaling): optimize test to reduce flaky timeouts

Bug: 247861716
Test: atest FrameworksCoreTests:android.content.res.FontScaleConverterFactoryTest
Change-Id: I76d58a6d0b78f3ef1bd6c61040025f5b95487859
This commit is contained in:
Tyler Freeman
2023-02-16 16:39:38 -08:00
parent d0134ec0c1
commit 5dda390795

View File

@@ -90,11 +90,7 @@ class FontScaleConverterFactoryTest {
}
.forEach { (table, sp) ->
try {
assertWithMessage(
"convertSpToDp(%s) on table: %s",
sp.toString(),
table.toString()
)
assertWithMessage("convertSpToDp(%s) on table: %s", sp, table)
.that(table.convertSpToDp(sp))
.isFinite()
} catch (e: Exception) {