summaryrefslogtreecommitdiffstats
path: root/api/oauth_test.go
diff options
context:
space:
mode:
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 18938b902..3dcaa0ddf 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