From f1b30c5696b28c2e79ed83cfec1596b3434ff937 Mon Sep 17 00:00:00 2001 From: Jacob Choi Date: Fri, 20 Oct 2023 16:27:08 -0400 Subject: [PATCH] fixing error Signed-off-by: Jacob Choi --- .../kotlin/org/opensearch/alerting/MonitorRunnerServiceIT.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerServiceIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerServiceIT.kt index aaf9cdce3..8da9c1e4c 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerServiceIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorRunnerServiceIT.kt @@ -1403,7 +1403,7 @@ class MonitorRunnerServiceIT : AlertingRestTestCase() { // Execute Monitor and check that both Alerts were updated OpenSearchTestCase.waitUntil({ - return@waitUntil (searchAlerts(monitor, AlertIndices.ALL_ALERT_INDEX_PATTERN).size == 2) + return@waitUntil false }, 200, TimeUnit.MILLISECONDS) executeMonitor(monitor.id) currentAlerts = searchAlerts(monitor, AlertIndices.ALL_ALERT_INDEX_PATTERN)