From ae9af452cee62115d1fef16bd541b5aa06ec34b1 Mon Sep 17 00:00:00 2001 From: Mugurell Date: Wed, 17 Aug 2022 21:37:41 +0300 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/26335: Allow for more inflations in performance tests The first patch for this enabled the contile feature by default which based on the automated tests increased the number of inflations done in HomeActivity. This patch comes to address that by allowing for up to 6 inflations as seen reported as the actual count in tests. --- .../org/mozilla/fenix/perf/StartupExcessiveResourceUseTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/perf/StartupExcessiveResourceUseTest.kt b/app/src/androidTest/java/org/mozilla/fenix/perf/StartupExcessiveResourceUseTest.kt index e16a6b0933..767dde2ccc 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/perf/StartupExcessiveResourceUseTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/perf/StartupExcessiveResourceUseTest.kt @@ -63,7 +63,7 @@ private val EXPECTED_RUNBLOCKING_RANGE = 0..1 // CI has +1 counts compared to lo * If the view hierarchy uses Jetpack Compose, switching to that is also an option. */ private val EXPECTED_RECYCLER_VIEW_CONSTRAINT_LAYOUT_CHILDREN = - 3..4 // The messaging framework is not deterministic and could add a +1 to the count + 4..6 // The messaging framework is not deterministic and could add to the count. /** * The number of layouts we inflate during this start up scenario. Incrementing the expected value