Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: liubo02 <[email protected]>
  • Loading branch information
liubog2008 committed Dec 24, 2024
1 parent a1bdc82 commit 3dac1b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/client/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,11 @@ func (c *fakeUnderlayClient) PatchReactionFunc(action *testing.PatchActionImpl)
if err := yaml.Unmarshal(action.GetPatch(), &patchObj.Object); err != nil {
return true, nil, fmt.Errorf("error decoding YAML: %w", err)
}
if _, err := manager.Apply(obj, patchObj, "tidb-operator", true); err != nil {
ret, err := manager.Apply(obj, patchObj, "tidb-operator", true)
if err != nil {
return true, nil, err
}
obj = ret

default:
return true, nil, fmt.Errorf("PatchType is not supported")
Expand Down

0 comments on commit 3dac1b3

Please sign in to comment.