[Fix] Fixing StartActivityExecutionServiceTest test
This commit is contained in:
parent
f3d686c3bb
commit
fdc08d873d
|
@ -157,7 +157,7 @@ public class StartActivityExecutionServiceTest extends RuntimeMock {
|
||||||
doServiceAssertResult(cert, svc, arg);
|
doServiceAssertResult(cert, svc, arg);
|
||||||
|
|
||||||
// allow execution handler to do work
|
// allow execution handler to do work
|
||||||
Thread.sleep(50);
|
Thread.sleep(100);
|
||||||
|
|
||||||
try (StrolchTransaction tx = getRealm("execution").openTx(cert, StartActivityExecutionServiceTest.class)) {
|
try (StrolchTransaction tx = getRealm("execution").openTx(cert, StartActivityExecutionServiceTest.class)) {
|
||||||
Action action;
|
Action action;
|
||||||
|
@ -187,7 +187,7 @@ public class StartActivityExecutionServiceTest extends RuntimeMock {
|
||||||
assertEquals(State.EXECUTION, action.getState());
|
assertEquals(State.EXECUTION, action.getState());
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread.sleep(150L);
|
Thread.sleep(200L);
|
||||||
|
|
||||||
try (StrolchTransaction tx = getRealm("execution").openTx(cert, StartActivityExecutionServiceTest.class)) {
|
try (StrolchTransaction tx = getRealm("execution").openTx(cert, StartActivityExecutionServiceTest.class)) {
|
||||||
Action action;
|
Action action;
|
||||||
|
@ -220,7 +220,7 @@ public class StartActivityExecutionServiceTest extends RuntimeMock {
|
||||||
assertEquals(State.EXECUTION, activity.getState());
|
assertEquals(State.EXECUTION, activity.getState());
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread.sleep(100L);
|
Thread.sleep(200L);
|
||||||
|
|
||||||
try (StrolchTransaction tx = getRealm("execution").openTx(cert, StartActivityExecutionServiceTest.class)) {
|
try (StrolchTransaction tx = getRealm("execution").openTx(cert, StartActivityExecutionServiceTest.class)) {
|
||||||
Action action;
|
Action action;
|
||||||
|
@ -253,7 +253,7 @@ public class StartActivityExecutionServiceTest extends RuntimeMock {
|
||||||
assertEquals(State.EXECUTION, activity.getState());
|
assertEquals(State.EXECUTION, activity.getState());
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread.sleep(150L);
|
Thread.sleep(200L);
|
||||||
|
|
||||||
try (StrolchTransaction tx = getRealm("execution").openTx(cert, StartActivityExecutionServiceTest.class)) {
|
try (StrolchTransaction tx = getRealm("execution").openTx(cert, StartActivityExecutionServiceTest.class)) {
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
|
|
||||||
<Activity Id="parallel" Name="Activity" Type="ToStock" TimeOrdering="Parallel">
|
<Activity Id="parallel" Name="Activity" Type="ToStock" TimeOrdering="Parallel">
|
||||||
<ParameterBag Name="objectives" Id="Objectives" Type="Objectives">
|
<ParameterBag Name="objectives" Id="Objectives" Type="Objectives">
|
||||||
<Parameter Name="Duration" Id="duration" Value="PT0.1S" Type="Duration" />
|
<Parameter Name="Duration" Id="duration" Value="PT0.2S" Type="Duration" />
|
||||||
</ParameterBag>
|
</ParameterBag>
|
||||||
<Activity Id="sub1" Name="Sub Activity 1" Type="Sub" TimeOrdering="Parallel">
|
<Activity Id="sub1" Name="Sub Activity 1" Type="Sub" TimeOrdering="Parallel">
|
||||||
<Action Id="action_1" Name="Action 1" ResourceId="conveyor1" ResourceType="Conveyor" Type="Use" />
|
<Action Id="action_1" Name="Action 1" ResourceId="conveyor1" ResourceType="Conveyor" Type="Use" />
|
||||||
|
|
Loading…
Reference in New Issue