diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-26 14:21:22 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-10-26 15:21:22 -0400 |
commit | 7ed011745a544873f40f806f1803cb8a4998ba01 (patch) | |
tree | fe13919b050b33c8dd3f6ca5fce6ad1980b2dd3e /app/user_test.go | |
parent | a0bfd2885d03e3f9fb6b3cdd6ba60eea93c848b2 (diff) | |
download | chat-7ed011745a544873f40f806f1803cb8a4998ba01.tar.gz chat-7ed011745a544873f40f806f1803cb8a4998ba01.tar.bz2 chat-7ed011745a544873f40f806f1803cb8a4998ba01.zip |
Remove more global refs / state (#7723)
* remove more global refs / state
* fix job enterprise initialization
* fix api4 test compilation
* saml api endpoints fix
Diffstat (limited to 'app/user_test.go')
-rw-r--r-- | app/user_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/user_test.go b/app/user_test.go index 39be7eafa..282e2896d 100644 --- a/app/user_test.go +++ b/app/user_test.go @@ -87,11 +87,11 @@ func TestCreateOAuthUser(t *testing.T) { th.App.PermanentDeleteUser(user) - userCreation := utils.Cfg.TeamSettings.EnableUserCreation - defer func() { - utils.Cfg.TeamSettings.EnableUserCreation = userCreation - }() - utils.Cfg.TeamSettings.EnableUserCreation = false + userCreation := th.App.Config().TeamSettings.EnableUserCreation + defer th.App.UpdateConfig(func(cfg *model.Config) { + cfg.TeamSettings.EnableUserCreation = userCreation + }) + th.App.Config().TeamSettings.EnableUserCreation = false _, err = th.App.CreateOAuthUser(model.USER_AUTH_SERVICE_GITLAB, strings.NewReader(json), th.BasicTeam.Id) if err == nil { |