Merge "Marking a flaky test as such"

This commit is contained in:
TreeHugger Robot
2021-01-11 21:00:55 +00:00
committed by Android (Google) Code Review

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);