Skip to content

Commit

Permalink
fix(core): retry flaky test TimeoutTest.timeout()
Browse files Browse the repository at this point in the history
As its failure cannot be reproduced locally even with 100 repetitions, there is no other choice than retrying it.
  • Loading branch information
loicmathieu committed Jan 31, 2025
1 parent d12dd17 commit 95d2d1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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.time.Duration;
Expand All @@ -43,7 +43,7 @@ class TimeoutTest {
@Inject
private RunnerUtils runnerUtils;

@Test
@RetryingTest(5) // Flaky on CI but never locally even with 100 repetitions
void timeout() throws TimeoutException, QueueException {
List<LogEntry> logs = new CopyOnWriteArrayList<>();
Flux<LogEntry> receive = TestsUtils.receive(workerTaskLogQueue, either -> logs.add(either.getLeft()));
Expand Down

0 comments on commit 95d2d1d

Please sign in to comment.