diff options
Diffstat (limited to 'api/oauth_test.go')
-rw-r--r-- | api/oauth_test.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/api/oauth_test.go b/api/oauth_test.go index 8309b67cc..ec1e557da 100644 --- a/api/oauth_test.go +++ b/api/oauth_test.go @@ -88,8 +88,6 @@ func TestOAuthRegisterApp(t *testing.T) { t.Fatal("should have failed. not enough permissions") } - adminOnly := *th.App.Config().ServiceSettings.EnableOnlyAdminIntegrations - defer th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableOnlyAdminIntegrations = adminOnly }) th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableOnlyAdminIntegrations = false }) th.LoginBasic() @@ -741,9 +739,6 @@ func TestOAuthComplete(t *testing.T) { // We are going to use mattermost as the provider emulating gitlab th.App.UpdateConfig(func(cfg *model.Config) { cfg.ServiceSettings.EnableOAuthServiceProvider = true }) - - adminOnly := *th.App.Config().ServiceSettings.EnableOnlyAdminIntegrations - defer th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableOnlyAdminIntegrations = adminOnly }) th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableOnlyAdminIntegrations = false }) oauthApp := &model.OAuthApp{ |