Skip to content

Commit

Permalink
test: Fix operator metric tests
Browse files Browse the repository at this point in the history
Signed-off-by: William Van Hevelingen <William.VanHevelingen@acquia.com>
  • Loading branch information
blkperl committed Mar 1, 2024
1 parent 6ebd799 commit 770ec65
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 770ec65

Please sign in to comment.