From 6e40cd846c1d68fed1315e37823ba600e9c761f2 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 --- staging/src/k8s.io/sample-controller/controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }