diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt index 53bb54a53..0c32ecf0b 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt @@ -2791,7 +2791,9 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() { indexDoc(aliasName, "6", testDoc) indexDoc(aliasName, "7", testDoc) OpenSearchTestCase.waitUntil( - { searchFindings(monitor).size == 6 && searchAlertsWithFilter(monitor).size == 1 }, 2, TimeUnit.MINUTES + { searchFindings(monitor).size == 6 && searchAlertsWithFilter(monitor).size == 1 }, + 2, + TimeUnit.MINUTES ) rolloverDatastream(aliasName) @@ -2802,7 +2804,9 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() { indexDoc(aliasName, "16", testDoc) indexDoc(aliasName, "17", testDoc) OpenSearchTestCase.waitUntil( - { searchFindings(monitor).size == 6 && searchAlertsWithFilter(monitor).size == 1 }, 2, TimeUnit.MINUTES + { searchFindings(monitor).size == 6 && searchAlertsWithFilter(monitor).size == 1 }, + 2, + TimeUnit.MINUTES ) deleteDataStream(aliasName)