Commit 6e40cd84 authored by Sen Lu's avatar Sen Lu

fix patch compare in test

parent 5966ed77
...@@ -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