Annotate a couple flakytests in ScheduleCalendarTest
Test: runtest --path ...
Change-Id: I4106bbdb48d4fc39393190e0069afc7707a2b916
diff --git a/services/tests/uiservicestests/src/com/android/server/notification/ScheduleCalendarTest.java b/services/tests/uiservicestests/src/com/android/server/notification/ScheduleCalendarTest.java
index 4eb4220..5ebfd48 100644
--- a/services/tests/uiservicestests/src/com/android/server/notification/ScheduleCalendarTest.java
+++ b/services/tests/uiservicestests/src/com/android/server/notification/ScheduleCalendarTest.java
@@ -23,6 +23,7 @@
import android.service.notification.ScheduleCalendar;
import android.service.notification.ZenModeConfig;
+import android.support.test.filters.FlakyTest;
import android.support.test.runner.AndroidJUnit4;
import android.test.suitebuilder.annotation.SmallTest;
@@ -257,6 +258,7 @@
}
@Test
+ @FlakyTest
public void testIsInSchedule_inScheduleOvernight() {
Calendar cal = new GregorianCalendar();
cal.set(Calendar.HOUR_OF_DAY, 23);
@@ -273,6 +275,7 @@
}
@Test
+ @FlakyTest
public void testIsInSchedule_inScheduleSingleDay() {
Calendar cal = new GregorianCalendar();
cal.set(Calendar.HOUR_OF_DAY, 14);