From 8ac44a180d121bcba63d5de1060d9cdfc29792ca Mon Sep 17 00:00:00 2001 From: Rafaela Soares Date: Tue, 10 Sep 2024 16:28:37 +0100 Subject: [PATCH] remove import being imported more than once --- pkg/cmd/ban_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cmd/ban_test.go b/pkg/cmd/ban_test.go index f92e23d..ba81660 100644 --- a/pkg/cmd/ban_test.go +++ b/pkg/cmd/ban_test.go @@ -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" ) @@ -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") }