summaryrefslogtreecommitdiffstats
path: root/api/oauth_test.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2017-04-10 14:47:38 -0400
committerJoramWilander <jwawilander@gmail.com>2017-04-10 14:47:38 -0400
commit5c89fe1b8d7ce4cf63f697609b18817ad1c626fe (patch)
tree59d6ce65bacb676cc98617062f4ea9a628b61676 /api/oauth_test.go
parent9c3b96661bfe358cfad2b7ceb43b40fee6f3c544 (diff)
downloadchat-5c89fe1b8d7ce4cf63f697609b18817ad1c626fe.tar.gz
chat-5c89fe1b8d7ce4cf63f697609b18817ad1c626fe.tar.bz2
chat-5c89fe1b8d7ce4cf63f697609b18817ad1c626fe.zip
Fix configuration setting
Diffstat (limited to 'api/oauth_test.go')
-rw-r--r--api/oauth_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/oauth_test.go b/api/oauth_test.go
index 87a8f847c..5f55ae8f0 100644
--- a/api/oauth_test.go
+++ b/api/oauth_test.go
@@ -188,8 +188,8 @@ func TestOAuthGetAppsByUser(t *testing.T) {
utils.Cfg.ServiceSettings.EnableOAuthServiceProvider = true
- if _, err := Client.GetOAuthAppsByUser(); err != nil {
- t.Fatal("Should have passed.")
+ if _, err := Client.GetOAuthAppsByUser(); err == nil {
+ t.Fatal("Should have failed.")
}
*utils.Cfg.ServiceSettings.EnableOnlyAdminIntegrations = false