Skip to content

Commit

Permalink
tests and swagger fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n committed Nov 5, 2023
1 parent 4b12b56 commit bd73e30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ springdoc.swagger-ui.disable-swagger-default-url=true
springdoc.swagger-ui.queryConfigEnabled=false
springdoc.swagger-ui.filter=true

conductor.swagger.url=http://localhost:8080/
conductor.swagger.url=/

Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public void testWaitTimeout() throws ExecutionException, InterruptedException,
assertEquals(Workflow.WorkflowStatus.COMPLETED, run.getStatus());
assertEquals(1, run.getTasks().size());
long timeToExecute = run.getTasks().get(0).getEndTime() - run.getTasks().get(0).getScheduledTime();

System.out.println("Wait task completed in " + timeToExecute + " millis - should have completed in around 2 second mark");
// Ensure the wait completes within 1sec buffer
assertTrue(timeToExecute < 31000, "Wait task did not complete in time, took " + timeToExecute + " millis");
assertTrue(timeToExecute < 3000, "Wait task did not complete in time, took " + timeToExecute + " millis");
}
}

0 comments on commit bd73e30

Please sign in to comment.