diff --git a/controller_test.go b/controller_test.go index 8eea8161..f25459c6 100644 --- a/controller_test.go +++ b/controller_test.go @@ -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)) }