From f98e21072dde3a6b2a96412adaea5b1288906b20 Mon Sep 17 00:00:00 2001 From: Sen Lu Date: Fri, 14 Sep 2018 22:48:49 -0700 Subject: [PATCH] fix patch compare in test Kubernetes-commit: 6e40cd846c1d68fed1315e37823ba600e9c761f2 --- controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller_test.go b/controller_test.go index 8eea81613..f25459c6c 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)) }