Merge pull request #68709 from krzyzacy/fix-sample-test

fix patch compare in sample-controller test
This commit is contained in:
k8s-ci-robot 2018-09-25 22:57:53 -07:00 committed by GitHub
commit 1b2298cb75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
}