Mark testNotificationEvent_quotaBump as flaky.

It currently is failing > 50% of the time on master.

Also, actually configure the test runners to actually skip flaky tests.
Most of these were still running despite being marked as @FlakyTest.

Bug: 185169504
Test: atest AppStandbyControllerTests#testNotificationEvent_quotaBump
Change-Id: I587f156a7296c80dd0d55fd9687de6bdcabb3895
This commit is contained in:
Michael Wright
2022-07-06 20:01:37 +01:00
parent 085c27f7ef
commit eedfcc8aca
2 changed files with 2 additions and 0 deletions

View File

@@ -51,5 +51,6 @@
<option name="package" value="com.android.frameworks.servicestests" /> <option name="package" value="com.android.frameworks.servicestests" />
<option name="runner" value="androidx.test.runner.AndroidJUnitRunner" /> <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
<option name="hidden-api-checks" value="false"/> <option name="hidden-api-checks" value="false"/>
<option name="exclude-annotation" value="androidx.test.filters.FlakyTest" />
</test> </test>
</configuration> </configuration>

View File

@@ -928,6 +928,7 @@ public class AppStandbyControllerTests {
} }
@Test @Test
@FlakyTest(bugId = 185169504)
public void testNotificationEvent_quotaBump() throws Exception { public void testNotificationEvent_quotaBump() throws Exception {
mInjector.mSettingsBuilder mInjector.mSettingsBuilder
.setBoolean("trigger_quota_bump_on_notification_seen", true); .setBoolean("trigger_quota_bump_on_notification_seen", true);