mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-03-16 09:31:03 +08:00
fix patch compare in test
Kubernetes-commit: 6e40cd846c1d68fed1315e37823ba600e9c761f2
This commit is contained in:
parent
4f47c578d9
commit
f98e21072d
@ -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…
x
Reference in New Issue
Block a user