Skip to content

Commit

Permalink
correct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wonko committed Nov 22, 2023
1 parent 132646e commit cf81afc
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit cf81afc

Please sign in to comment.