Unverified Commit 1b2298cb authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

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

fix patch compare in sample-controller test
parents f815e392 6e40cd84
...@@ -198,7 +198,7 @@ func checkAction(expected, actual core.Action, t *testing.T) { ...@@ -198,7 +198,7 @@ func checkAction(expected, actual core.Action, t *testing.T) {
expPatch := e.GetPatch() expPatch := e.GetPatch()
patch := a.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", t.Errorf("Action %s %s has wrong patch\nDiff:\n %s",
a.GetVerb(), a.GetResource().Resource, diff.ObjectGoPrintDiff(expPatch, patch)) a.GetVerb(), a.GetResource().Resource, diff.ObjectGoPrintDiff(expPatch, patch))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment