Skip to content

Commit

Permalink
Increase timeouts in TestStateMachine
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Nov 7, 2018
1 parent b09ea18 commit 9011cfb
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -240,8 +240,8 @@ private static void assertStateChange(StateMachine<State> stateMachine, StateCha

assertEquals(stateMachine.get(), expectedState);

assertEquals(futureChange.get(1, SECONDS), expectedState);
assertEquals(listenerChange.get(1, SECONDS), expectedState);
assertEquals(futureChange.get(10, SECONDS), expectedState);
assertEquals(listenerChange.get(10, SECONDS), expectedState);

// listeners should not be retained if we are in a terminal state
boolean isTerminalState = stateMachine.isTerminalState(expectedState);
Expand Down Expand Up @@ -272,7 +272,7 @@ private static void assertNoStateChange(StateMachine<State> stateMachine, StateC
boolean isTerminalState = stateMachine.isTerminalState(initialState);
if (isTerminalState) {
assertEquals(stateMachine.getStateChangeListeners(), ImmutableSet.of());
assertEquals(listenerChange.get(1, SECONDS), initialState);
assertEquals(listenerChange.get(10, SECONDS), initialState);
}

stateChange.run();
Expand Down

0 comments on commit 9011cfb

Please sign in to comment.