mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
chore(tests): update namings of evaluation tests
This commit is contained in:
committed by
Loïc Mathieu
parent
8e7ad9ae25
commit
e302b4be4a
@@ -489,9 +489,8 @@ public class SchedulerScheduleTest extends AbstractSchedulerTest {
|
||||
Await.until(() -> this.triggerState.findLast(trigger).map(t -> t.getDisabled()).orElse(false).booleanValue(), Duration.ofMillis(100), Duration.ofSeconds(10));
|
||||
}
|
||||
}
|
||||
// covers trigger evaluation failures from failed conditions at scheduled triggers
|
||||
@Test
|
||||
void failedEvaluation1() {
|
||||
void failedEvaluationFromFailedCondition() {
|
||||
// mock flow listeners
|
||||
FlowListeners flowListenersServiceSpy = spy(this.flowListenersService);
|
||||
Schedule schedule = createScheduleTrigger("Europe/Paris", "* * * * *", "failedEvaluation", false)
|
||||
@@ -545,9 +544,8 @@ public class SchedulerScheduleTest extends AbstractSchedulerTest {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
// covers trigger evaluation failures propagated to evaluateScheduleTrigger() such as invalid expressions, input resolving issues at scheduled triggers...etc
|
||||
@Test
|
||||
void failedEvaluation2() {
|
||||
void failedEvaluationFromInvalidExpression() {
|
||||
// mock flow listeners
|
||||
FlowListeners flowListenersServiceSpy = spy(this.flowListenersService);
|
||||
Schedule schedule = createScheduleTrigger("Europe/Paris", "* * * * *", "failedEvaluation", false)
|
||||
|
||||
Reference in New Issue
Block a user