Skip to content

Commit

Permalink
Slight error message change
Browse files Browse the repository at this point in the history
Signed-off-by: Laszlo Fogas <[email protected]>
  • Loading branch information
laszlocph committed Feb 19, 2021
1 parent 9a14492 commit 0b33900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand All @@ -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)
}
}

0 comments on commit 0b33900

Please sign in to comment.