Skip to content

Commit

Permalink
test: fix operator metric tests (argoproj#12730)
Browse files Browse the repository at this point in the history
Signed-off-by: william.vanhevelingen <[email protected]>
  • Loading branch information
blkperl authored Mar 2, 2024
1 parent 61156f2 commit 7286d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/operator_metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func getMetricStringValue(metric prometheus.Metric) (string, error) {
if err != nil {
return "", err
}
return fmt.Sprintf("%v", metricString), nil
return fmt.Sprintf("%v", metricString.String()), nil
}

func getMetricGaugeValue(metric prometheus.Metric) (*float64, error) {
Expand Down

0 comments on commit 7286d49

Please sign in to comment.