From db3c2d421abee9424a78e6d9b1b63187406d42e7 Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Thu, 12 Oct 2023 16:21:17 +0000 Subject: [PATCH] fix for concurrentmodificationexception with linkedhashmap Signed-off-by: Subhobrata Dey --- .../kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt index 79afd9e62..4909d08ca 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt @@ -1280,7 +1280,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() { val index4 = createTestIndex() val index5 = createTestIndex() - val docQuery = DocLevelQuery(query = "\"us-west-2\"", fields = listOf(), name = "3") + val docQuery = DocLevelQuery(query = "\"us-west-2\"", name = "3") var docLevelInput = DocLevelMonitorInput("description", listOf(index1, index2, index4, index5), listOf(docQuery)) val action = randomAction(template = randomTemplateScript("Hello {{ctx.monitor.name}}"), destinationId = createDestination().id)