diff --git a/staging/src/k8s.io/sample-controller/controller_test.go b/staging/src/k8s.io/sample-controller/controller_test.go index 8eea816131e..f25459c6c90 100644 --- a/staging/src/k8s.io/sample-controller/controller_test.go +++ b/staging/src/k8s.io/sample-controller/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)) }