diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerServiceIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerServiceIT.kt index 540fd166c..d56ca4d95 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerServiceIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerServiceIT.kt @@ -870,7 +870,7 @@ class MonitorRunnerServiceIT : AlertingRestTestCase() { val trigger = randomQueryLevelTrigger( condition = Script( """ - return ctx.results[0].number_of_pending_tasks < 1 + return ctx.results[0].number_of_pending_tasks >= 0 """.trimIndent() ), destinationId = createDestination().id