Marking a flaky test as such

Excluding it from presubmit till the flakiness can be fixed.

Test: atest --test-mapping

Bug: 172318004
Change-Id: Iebf5e03df0fb05abc798a66486eea85687da2060
This commit is contained in:
Suprabh Shukla
2021-01-11 10:57:51 -08:00
parent 5ff9406350
commit a3672daa42

View File

@@ -41,6 +41,7 @@ import android.provider.Settings;
import android.util.Log;
import androidx.test.InstrumentationRegistry;
import androidx.test.filters.FlakyTest;
import androidx.test.filters.LargeTest;
import androidx.test.runner.AndroidJUnit4;
@@ -131,6 +132,7 @@ public class BackgroundRestrictionsTest {
}
@Test
@FlakyTest
public void testPowerWhiteList() throws Exception {
scheduleAndAssertJobStarted();
setAppOpsModeAllowed(false);