From 5dda390795d8386c943040245dbf3c41028db508 Mon Sep 17 00:00:00 2001 From: Tyler Freeman Date: Thu, 16 Feb 2023 16:39:38 -0800 Subject: [PATCH] fix(non linear font scaling): optimize test to reduce flaky timeouts Bug: 247861716 Test: atest FrameworksCoreTests:android.content.res.FontScaleConverterFactoryTest Change-Id: I76d58a6d0b78f3ef1bd6c61040025f5b95487859 --- .../android/content/res/FontScaleConverterFactoryTest.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/tests/coretests/src/android/content/res/FontScaleConverterFactoryTest.kt b/core/tests/coretests/src/android/content/res/FontScaleConverterFactoryTest.kt index 249e2468d87e0..ef106bc7cb73b 100644 --- a/core/tests/coretests/src/android/content/res/FontScaleConverterFactoryTest.kt +++ b/core/tests/coretests/src/android/content/res/FontScaleConverterFactoryTest.kt @@ -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) {