From 497a241b950b3d1486db7d41453b1a1a6adc5d24 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Fri, 12 Apr 2024 18:04:17 -0700 Subject: [PATCH] Fixed test. Signed-off-by: AWSHurneyt --- .../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 83f5d5b76..f53438c1f 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/DocumentMonitorRunnerIT.kt @@ -2033,7 +2033,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() { ) fail("Expected create monitor to fail") } catch (e: ResponseException) { - assertTrue(e.message!!.contains("illegal_argument_exception")) + assertTrue(e.message!!.contains("alerting_exception")) } }