Compare commits

...

3 Commits

Author SHA1 Message Date
Roman Acevedo
dbc4dd430e test: put retry on SchedulerTriggerChangeTest.run 2025-09-05 16:46:04 +02:00
Roman Acevedo
37880de889 test: put retry on ExitTest.shouldExitAndKillTheExecution 2025-09-05 15:57:28 +02:00
Roman Acevedo
7cf3ac4994 test: put retry on AbstractRunnerTest.flowConcurrencyWithForEachItem 2025-09-05 15:55:25 +02:00
3 changed files with 5 additions and 4 deletions

View File

@@ -435,7 +435,7 @@ public abstract class AbstractRunnerTest {
flowConcurrencyCaseTest.flowConcurrencyCancelPause();
}
@Test
@RetryingTest(5)
@LoadFlows({"flows/valids/flow-concurrency-for-each-item.yaml", "flows/valids/flow-concurrency-queue.yml"})
protected void flowConcurrencyWithForEachItem() throws Exception {
flowConcurrencyCaseTest.flowConcurrencyWithForEachItem();

View File

@@ -14,6 +14,7 @@ import io.kestra.core.utils.TestsUtils;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import org.junit.jupiter.api.Test;
import org.junitpioneer.jupiter.RetryingTest;
import reactor.core.publisher.Flux;
import java.util.Optional;
@@ -42,7 +43,7 @@ class ExitTest {
assertThat(execution.getTaskRunList().getFirst().getState().getCurrent()).isEqualTo(State.Type.WARNING);
}
@Test
@RetryingTest(5)
@LoadFlows("flows/valids/exit-killed.yaml")
void shouldExitAndKillTheExecution() throws QueueException, InterruptedException {
CountDownLatch countDownLatch = new CountDownLatch(2);// We need to wait for 3 execution modifications to be sure all tasks are passed to KILLED

View File

@@ -30,7 +30,7 @@ import jakarta.inject.Inject;
import jakarta.inject.Named;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.junit.jupiter.api.Test;
import org.junitpioneer.jupiter.RetryingTest;
import reactor.core.publisher.Flux;
import java.time.Duration;
@@ -88,7 +88,7 @@ public class SchedulerTriggerChangeTest extends AbstractSchedulerTest {
return FlowWithSource.of(flow, flow.getSource());
}
@Test
@RetryingTest(5)
void run() throws Exception {
CountDownLatch executionQueueCount = new CountDownLatch(1);
CountDownLatch executionKilledCount = new CountDownLatch(1);