From cf81afcd14711b79863c86e52bc555bb1974c347 Mon Sep 17 00:00:00 2001 From: Bernard Grymonpon Date: Wed, 22 Nov 2023 16:16:57 +0100 Subject: [PATCH] correct tests --- .../prometheus_metrics/prometheus_metrics_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/sequential/prometheus_metrics/prometheus_metrics_test.go b/tests/sequential/prometheus_metrics/prometheus_metrics_test.go index 88977d30262..e020152c4b1 100644 --- a/tests/sequential/prometheus_metrics/prometheus_metrics_test.go +++ b/tests/sequential/prometheus_metrics/prometheus_metrics_test.go @@ -288,7 +288,6 @@ func TestPrometheusMetrics(t *testing.T) { testScalerActiveMetric(t) testScaledObjectErrors(t, data) testScalerErrors(t, data) - testScalerErrorsTotal(t, data) testOperatorMetrics(t, kc, data) testMetricServerMetrics(t) testWebhookMetrics(t, data) @@ -417,11 +416,6 @@ func testScalerErrors(t *testing.T, data templateData) { func getErrorMetricsValue(val *prommodel.MetricFamily) float64 { switch val.GetName() { - case "keda_scaler_errors_total": - metrics := val.GetMetric() - for _, metric := range metrics { - return metric.GetCounter().GetValue() - } case "keda_scaled_object_errors_total": metrics := val.GetMetric() for _, metric := range metrics {