Skip to content

Commit

Permalink
fix(core): bad merge on TemplateTest
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu committed Sep 7, 2023
1 parent b6cc6f4 commit fb51fed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/test/java/io/kestra/core/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import java.util.function.Consumer;

public class Helpers {
public static long FLOWS_COUNT = 66;
public static long FLOWS_COUNT = 67;

public static ApplicationContext applicationContext() throws URISyntaxException {
return applicationContext(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import io.kestra.core.runners.ListenersTest;
import io.kestra.core.runners.RunnerUtils;
import io.kestra.core.tasks.log.Log;
import io.kestra.core.utils.TestsUtils;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -84,8 +85,7 @@ public static void withFailedTemplate(RunnerUtils runnerUtils, TemplateRepositor

assertThat(execution.getTaskRunList(), hasSize(1));
assertThat(execution.getState().getCurrent(), is(State.Type.FAILED));
LogEntry matchingLog = TestsUtils.awaitLog(logs, logEntry -> logEntry.getMessage().endsWith("Can't find flow template 'io.kestra.tests.invalid'") && logEntry.getLevel() == Level.ERROR);
assertThat(matchingLog, notNullValue());
assertThat(logs.stream().filter(logEntry -> logEntry.getMessage().endsWith("Can't find flow template 'io.kestra.tests.invalid'")).findFirst().orElseThrow().getLevel(), is(Level.ERROR));
}

@Test
Expand Down

0 comments on commit fb51fed

Please sign in to comment.