Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void testRetry(String path) throws IOException {
.instance(Map.of("delay", 0.01))
.start();
Awaitility.await()
.atMost(Duration.ofSeconds(100))
.atMost(Duration.ofSeconds(1))
.until(() -> future.join().as(JsonNode.class).orElseThrow().equals(result));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ void tearDown() throws IOException {

@Test
void testAllEvent() throws IOException, InterruptedException, ExecutionException {

WorkflowDefinition definition =
appl.workflowDefinition(
readWorkflowFromClasspath("workflows-samples/listen-start-all.yaml"));
Expand All @@ -63,7 +62,7 @@ void testAllEvent() throws IOException, InterruptedException, ExecutionException
appl.eventPublishers().forEach(p -> p.publish(buildCloudEvent(Map.of("name", "Fulanito"))));
await()
.pollDelay(Duration.ofMillis(20))
.atMost(Duration.ofMillis(500))
.atMost(Duration.ofMillis(600))
.until(
() ->
instances.stream().filter(i -> i.status() == WorkflowStatus.COMPLETED).count()
Expand All @@ -81,7 +80,7 @@ void testOneEvent() throws IOException, InterruptedException, ExecutionException
Collection<WorkflowInstance> instances = appl.scheduler().scheduledInstances(definition);
await()
.pollDelay(Duration.ofMillis(20))
.atMost(Duration.ofMillis(500))
.atMost(Duration.ofMillis(600))
.until(
() ->
instances.stream().filter(i -> i.status() == WorkflowStatus.COMPLETED).count()
Expand All @@ -105,7 +104,7 @@ void testTogether() throws IOException, InterruptedException, ExecutionException
Collection<WorkflowInstance> allDefInstances = appl.scheduler().scheduledInstances(allDef);
await()
.pollDelay(Duration.ofMillis(20))
.atMost(Duration.ofMillis(500))
.atMost(Duration.ofMillis(800))
.until(
() ->
oneDefInstances.stream().filter(i -> i.status() == WorkflowStatus.COMPLETED).count()
Expand Down