Skip to content

Commit da937df

Browse files
committed
remove update
1 parent 3497874 commit da937df

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

percona/controller/pgcluster/controller_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,13 +1653,6 @@ func (sc *saTestClient) checkObject(ctx context.Context, obj client.Object) erro
16531653
return nil
16541654
}
16551655

1656-
func (sc *saTestClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error {
1657-
if err := sc.checkObject(ctx, obj); err != nil {
1658-
panic(err) // should panic because reconciler can ignore the error
1659-
}
1660-
return sc.Client.Update(ctx, obj, opts...)
1661-
}
1662-
16631656
func (sc *saTestClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error {
16641657
if err := sc.checkObject(ctx, obj); err != nil {
16651658
panic(err) // should panic because reconciler can ignore the error

0 commit comments

Comments
 (0)