diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerIT.kt index dc505ae41..7ff48d4cc 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerIT.kt @@ -870,7 +870,7 @@ class MonitorRunnerIT : 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