From 1c87c10721b6c3695a6a9165c995e28954ad50ee Mon Sep 17 00:00:00 2001 From: Chase Engelbrecht Date: Mon, 18 Mar 2024 13:21:08 -0700 Subject: [PATCH] Fix another test Signed-off-by: Chase Engelbrecht --- .../kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt index 077c9cff5..a29db0830 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt @@ -410,8 +410,8 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() { val findings = searchFindings(monitor2) assertEquals("Findings saved for test monitor", 2, findings.size) - assertTrue("Findings saved for test monitor", findings[0].relatedDocIds.contains("1")) - assertTrue("Findings saved for test monitor", findings[1].relatedDocIds.contains("5")) + assertTrue("Findings saved for test monitor", findings[0].relatedDocIds.contains("5")) + assertTrue("Findings saved for test monitor", findings[1].relatedDocIds.contains("1")) // ensure query from second monitor was saved val expectedQueries = listOf("test_field_test1_${monitor2.id}:\"us-east-1\"")