diff --git a/cli/command/registry/login_test.go b/cli/command/registry/login_test.go index f31ebd1716..9372a50aec 100644 --- a/cli/command/registry/login_test.go +++ b/cli/command/registry/login_test.go @@ -69,7 +69,7 @@ func TestLoginWithCredStoreCreds(t *testing.T) { } ctx := context.Background() for _, tc := range testCases { - cli := (*test.FakeCli)(test.NewFakeCli(&fakeClient{})) + cli := test.NewFakeCli(&fakeClient{}) errBuf := new(bytes.Buffer) cli.SetErr(errBuf) loginWithCredStoreCreds(ctx, cli, &tc.inputAuthConfig)