Skip to content

Commit

Permalink
drop require for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
gkech committed Jan 23, 2025
1 parent edce57e commit 4cc66ed
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import (
"strings"
"testing"

"github.com/stretchr/testify/require"

"gotest.tools/v3/assert"
"sigs.k8s.io/controller-runtime/pkg/webhook"
"sigs.k8s.io/yaml"
Expand Down Expand Up @@ -110,7 +108,7 @@ status:
var cluster PostgresCluster
cluster.Spec.Proxy = new(PostgresProxySpec)
err := cluster.Default(ctx, nil)
require.NoError(t, err)
assert.NilError(t, err)

b, err := yaml.Marshal(cluster.Spec.Proxy)
assert.NilError(t, err)
Expand All @@ -121,7 +119,7 @@ status:
var cluster PostgresCluster
cluster.Spec.Proxy = &PostgresProxySpec{PGBouncer: &PGBouncerPodSpec{}}
err := cluster.Default(ctx, nil)
require.NoError(t, err)
assert.NilError(t, err)

b, err := yaml.Marshal(cluster.Spec.Proxy)
assert.NilError(t, err)
Expand Down

0 comments on commit 4cc66ed

Please sign in to comment.