Skip to content

Commit

Permalink
remove import being imported more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoaresd committed Sep 10, 2024
1 parent 092b8c2 commit 8ac44a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cmd/ban_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"sigs.k8s.io/controller-runtime/pkg/client"
runtimeclient "sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down Expand Up @@ -217,7 +216,7 @@ func TestCreateBannedUser(t *testing.T) {
term := NewFakeTerminal()
ctx := clicontext.NewCommandContext(term, newClient)

fakeClient.MockList = func(ctx context.Context, list runtimeclient.ObjectList, opts ...client.ListOption) error {
fakeClient.MockList = func(ctx context.Context, list runtimeclient.ObjectList, opts ...runtimeclient.ListOption) error {
return errors.New("something went wrong listing the banned users")
}

Expand Down

0 comments on commit 8ac44a1

Please sign in to comment.