File tree Expand file tree Collapse file tree
impl/test/src/test/java/io/serverlessworkflow/impl/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222import io .serverlessworkflow .impl .WorkflowApplication ;
2323import io .serverlessworkflow .impl .WorkflowDefinition ;
24+ import io .serverlessworkflow .impl .WorkflowInstance ;
2425import java .io .IOException ;
2526import java .time .Duration ;
2627import java .util .Map ;
@@ -48,8 +49,9 @@ static void tearDown() throws IOException {
4849 void testAfter () throws IOException , InterruptedException , ExecutionException {
4950 try (WorkflowDefinition def =
5051 appl .workflowDefinition (readWorkflowFromClasspath ("workflows-samples/after-start.yaml" ))) {
51- def .instance (Map .of ()). start (). join ( );
52+ WorkflowInstance instance = def .instance (Map .of ());
5253 assertThat (def .scheduledInstances ()).isEmpty ();
54+ instance .start ().join ();
5355 await ()
5456 .pollDelay (Duration .ofMillis (50 ))
5557 .atMost (Duration .ofMillis (200 ))
You can’t perform that action at this time.
0 commit comments