mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #55115 from CaoShuFeng/crd_test
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. [trival]remove duplicated code from unit test **Release note**: ``` NONE ```
This commit is contained in:
commit
462d5ed106
@ -310,9 +310,6 @@ func (tc *patchTestCase) Run(t *testing.T) {
|
|||||||
|
|
||||||
patch := []byte{}
|
patch := []byte{}
|
||||||
switch patchType {
|
switch patchType {
|
||||||
case types.JSONPatchType:
|
|
||||||
continue
|
|
||||||
|
|
||||||
case types.StrategicMergePatchType:
|
case types.StrategicMergePatchType:
|
||||||
patch, err = strategicpatch.CreateTwoWayMergePatch(originalObjJS, changedJS, versionedObj)
|
patch, err = strategicpatch.CreateTwoWayMergePatch(originalObjJS, changedJS, versionedObj)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user