Skip to content

Commit

Permalink
fix(core): retry flaky test InputsTest.shouldNotLogSecretInput()
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Nov 14, 2024
1 parent ffec86f commit 6f45659
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/test/java/io/kestra/core/runners/InputsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.junit.jupiter.api.Test;

import jakarta.validation.ConstraintViolationException;
import org.junitpioneer.jupiter.RetryingTest;
import reactor.core.publisher.Flux;

import java.io.FileInputStream;
Expand Down Expand Up @@ -361,7 +362,7 @@ void inputEmptyJsonFlow() throws TimeoutException, QueueException {
assertThat((String) execution.findTaskRunsByTaskId("jsonOutput").getFirst().getOutputs().get("value"), is("{}"));
}

@Test
@RetryingTest(5) // it can happen that a log from another execution arrives first, so we enable retry
void shouldNotLogSecretInput() throws TimeoutException, QueueException {
Flux<LogEntry> receive = TestsUtils.receive(logQueue, l -> {});

Expand Down

0 comments on commit 6f45659

Please sign in to comment.