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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user