diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt index d2360fc07..ad6e8a199 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt @@ -5119,7 +5119,7 @@ class MonitorDataSourcesIT : AlertingSingleNodeTestCase() { } catch (e: Exception) { e.message?.let { assertTrue( - "Expected 0 hits for searchMonitorMetadata, got non-0 results.", + "Exception not returning GetWorkflow Action error ", it.contains("Workflow not found.") ) } @@ -5142,7 +5142,7 @@ class MonitorDataSourcesIT : AlertingSingleNodeTestCase() { } catch (e: Exception) { e.message?.let { assertTrue( - "Exception not returning searchMonitorMetadata error ", + "Expected 0 hits for searchMonitorMetadata, got non-0 results.", it.contains("List is empty") ) }