Fix TimerSmokeTests

- Now doing stop assert in same step where machine
  actually stops which is more reliable way to test.
This commit is contained in:
Janne Valkealahti
2019-12-25 07:29:33 +00:00
parent 49860418f8
commit b456ea823a

View File

@@ -110,7 +110,7 @@ public class TimerSmokeTests {
@Tag("smoke")
public void testDeadlock() throws Exception {
StateMachineTestPlan<String, String> plan;
for (int i = 0; i < 20; i++) {
for (int i = 0; i < 100; i++) {
plan = StateMachineTestPlanBuilder.<String, String> builder()
.defaultAwaitTime(5)
.stateMachine(buildMachine())
@@ -126,8 +126,6 @@ public class TimerSmokeTests {
.step()
.expectStateEntered(1)
.expectStateEntered("end")
.and()
.step()
.expectStateMachineStopped(1)
.and()
.build();