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:03:56 +00:00
parent c6f56df79d
commit 17389303aa

View File

@@ -88,7 +88,7 @@ public class TimerTriggerTests extends AbstractStateMachineTests {
listener.reset(1);
machine.sendEvent(TestEvents.E1);
assertThat(listener.stateChangedLatch.await(2, TimeUnit.SECONDS), is(true));
assertThat(listener.stateChangedLatch.await(2100, TimeUnit.MILLISECONDS), is(true));
assertThat(listener.stateChangedCount, is(1));
assertThat(machine.getState().getIds(), containsInAnyOrder(TestStates.S2));