Skip to content

Commit

Permalink
fix(core): TestUtils.mockTrigger() must call runContext.forScheduler()
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmathieu authored and tchiotludo committed Jun 5, 2023
1 parent f11e55b commit 50d6bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/io/kestra/core/utils/TestsUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static Map.Entry<ConditionContext, TriggerContext> mockTrigger(RunContext

return new AbstractMap.SimpleEntry<>(
ConditionContext.builder()
.runContext(runContextFactory.of(flow, trigger))
.runContext(runContextFactory.of(flow, trigger).forScheduler(flow, trigger))
.flow(flow)
.build(),
triggerContext
Expand Down

0 comments on commit 50d6bbc

Please sign in to comment.