diff --git a/pkg/api/login_oauth_test.go b/pkg/api/login_oauth_test.go index 3d77f2b2aa0b..f39c5cda96c5 100644 --- a/pkg/api/login_oauth_test.go +++ b/pkg/api/login_oauth_test.go @@ -39,7 +39,6 @@ func setupOAuthTest(t *testing.T, cfg *setting.Cfg) *web.Mux { SocialService: social.ProvideService(cfg, featuremgmt.WithFeatures()), HooksService: hooks.ProvideService(), SecretsService: fakes.NewFakeSecretsService(), - Features: featuremgmt.WithFeatures(), } m := web.New() diff --git a/pkg/services/oauthtoken/oauth_token_test.go b/pkg/services/oauthtoken/oauth_token_test.go index aa1bf3d1df67..ae761f0580f3 100644 --- a/pkg/services/oauthtoken/oauth_token_test.go +++ b/pkg/services/oauthtoken/oauth_token_test.go @@ -290,10 +290,6 @@ func (m *MockSocialConnector) AuthCodeURL(state string, opts ...oauth2.AuthCodeO panic("not implemented") } -func (m *MockSocialConnector) GetCustomAuthParams() []oauth2.AuthCodeOption { - panic("not implemented") -} - func (m *MockSocialConnector) Exchange(ctx context.Context, code string, authOptions ...oauth2.AuthCodeOption) (*oauth2.Token, error) { panic("not implemented") }