diff --git a/metrics-operator/controllers/metrics/controller_test.go b/metrics-operator/controllers/metrics/controller_test.go index 00c70faddaf..037512de367 100644 --- a/metrics-operator/controllers/metrics/controller_test.go +++ b/metrics-operator/controllers/metrics/controller_test.go @@ -98,6 +98,10 @@ func TestKeptnMetricReconciler_Reconcile(t *testing.T) { Query: "", FetchIntervalSeconds: 10, }, + + Status: metricsapi.KeptnMetricStatus{ + ErrMsg: "test error message", + }, } metric4 := &metricsapi.KeptnMetric{