diff --git a/controllers/utils_test.go b/controllers/utils_test.go index 1623c5afb..685f46f2a 100644 --- a/controllers/utils_test.go +++ b/controllers/utils_test.go @@ -14,7 +14,7 @@ The Service "webhook-receiver" is invalid: spec.clusterIP: Invalid value: "10.20 filtered = strings.TrimSpace(filtered) numLines := len(strings.Split(filtered, "\n")) if numLines != 1 { - t.Errorf("Should filter out all but one line from the error output, numLines %d", numLines) + t.Errorf("Should filter out all but one line from the error output, but got %d lines", numLines) } } @@ -27,6 +27,6 @@ error: error validating data: unknown field "ima ge" in io.k8s.api.core.v1.Cont filtered = strings.TrimSpace(filtered) numLines := len(strings.Split(filtered, "\n")) if numLines != 1 { - t.Errorf("Should filter out all but one line from the error output, numLines %d", numLines) + t.Errorf("Should filter out all but one line from the error output, but got %d lines", numLines) } }