Commits

timemachine committed 7427ec3

Improved test assertion.

  • Participants
  • Parent commits 0f18a74
  • Branches 1.1.x

Comments (0)

Files changed (1)

File timemachine-scheduler/src/test/java/integration/timemachine/scheduler/ScriptingSchedulerTest.java

 			MatcherAssert.assertThat(scheduler.findJobDefs().size(), Matchers.is(3));
 			MatcherAssert.assertThat(scheduler.findSchedules().size(), Matchers.is(16));
 			for (Schedule s : scheduler.findSchedules()) {
-				MatcherAssert.assertThat(s.getState(), Matchers.is(Schedule.State.PAUSED));
+				boolean shouldBeTrue = s.getState() == Schedule.State.PAUSED || s.getState() == Schedule.State.STAGING
+						|| s.getState() == Schedule.State.RUNNING;
+				MatcherAssert.assertThat(shouldBeTrue, Matchers.is(true));
 			}
 			
 			script = "src/test/resources/integration/timemachine/scheduler/ScriptingSchedulerTest-resume-all-schedules.groovy";