mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-05-12 01:34:21 +08:00
Merge pull request #68709 from krzyzacy/fix-sample-test
fix patch compare in sample-controller test Kubernetes-commit: 1b2298cb75a1375083a275560c71f8a7479c43d0
This commit is contained in:
commit
b8a1e69103
@ -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