diff --git a/workflow/controller/operator_metrics_test.go b/workflow/controller/operator_metrics_test.go index 58d6405d6800..5b5d4dedd8d4 100644 --- a/workflow/controller/operator_metrics_test.go +++ b/workflow/controller/operator_metrics_test.go @@ -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) {