Skip to content

Commit

Permalink
Merge "Annotate a couple flakytests in ScheduleCalendarTest"
Browse files Browse the repository at this point in the history
  • Loading branch information
TreeHugger Robot authored and Android (Google) Code Review committed Dec 8, 2017
2 parents 82a6467 + 69048f4 commit 23627fb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -257,6 +258,7 @@ public void testMaybeSetNextAlarm_expiredAlarm() {
}

@Test
@FlakyTest
public void testIsInSchedule_inScheduleOvernight() {
Calendar cal = new GregorianCalendar();
cal.set(Calendar.HOUR_OF_DAY, 23);
Expand All @@ -273,6 +275,7 @@ public void testIsInSchedule_inScheduleOvernight() {
}

@Test
@FlakyTest
public void testIsInSchedule_inScheduleSingleDay() {
Calendar cal = new GregorianCalendar();
cal.set(Calendar.HOUR_OF_DAY, 14);
Expand Down

0 comments on commit 23627fb

Please sign in to comment.