Skip to content

Commit

Permalink
fix patch compare in test
Browse files Browse the repository at this point in the history
Kubernetes-commit: 6e40cd846c1d68fed1315e37823ba600e9c761f2
  • Loading branch information
krzyzacy authored and k8s-publishing-bot committed Sep 15, 2018
1 parent 4f47c57 commit f98e210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func checkAction(expected, actual core.Action, t *testing.T) {
expPatch := e.GetPatch()
patch := a.GetPatch()

if !reflect.DeepEqual(expPatch, expPatch) {
if !reflect.DeepEqual(expPatch, patch) {
t.Errorf("Action %s %s has wrong patch\nDiff:\n %s",
a.GetVerb(), a.GetResource().Resource, diff.ObjectGoPrintDiff(expPatch, patch))
}
Expand Down

0 comments on commit f98e210

Please sign in to comment.