mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
fix patch compare in test
This commit is contained in:
parent
5966ed7784
commit
6e40cd846c
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user