Fix timing in tests

- Relates to #165 as scheduler timing is
  causing some trouble in tests.
This commit is contained in:
Janne Valkealahti
2016-03-05 18:19:46 +00:00
parent 17389303aa
commit ef19e119b4

View File

@@ -93,8 +93,8 @@ public class TimerTriggerTests extends AbstractStateMachineTests {
assertThat(machine.getState().getIds(), containsInAnyOrder(TestStates.S2));
Thread.sleep(1000);
// we should have 100, just test 90 due to timing
assertThat(action.count, greaterThan(90));
// we should have 100, just test 80 due to timing
assertThat(action.count, greaterThan(80));
}
@SuppressWarnings("unchecked")