mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #68709 from krzyzacy/fix-sample-test
fix patch compare in sample-controller test
This commit is contained in:
commit
1b2298cb75
@ -198,7 +198,7 @@ func checkAction(expected, actual core.Action, t *testing.T) {
|
||||
expPatch := e.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",
|
||||
a.GetVerb(), a.GetResource().Resource, diff.ObjectGoPrintDiff(expPatch, patch))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user