alerting(eval): EvalResult.Batch carries nextEvalState for cursor threading

This commit is contained in:
hsiegeln
2026-04-22 15:42:20 +02:00
parent 031fe725b5
commit 6fa8e3aa30
4 changed files with 11 additions and 6 deletions

View File

@@ -157,7 +157,7 @@ class AlertStateTransitionsTest {
@Test
void batchResultAlwaysEmpty() {
var batch = new EvalResult.Batch(List.of(FIRING_RESULT));
var batch = new EvalResult.Batch(List.of(FIRING_RESULT), Map.of());
var next = AlertStateTransitions.apply(null, batch, ruleWith(0), NOW);
assertThat(next).isEmpty();
}