summaryrefslogtreecommitdiffstats
path: root/api/oauth_test.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-08-11 11:47:12 -0500
committerCorey Hulen <corey@hulen.com>2016-08-11 08:47:12 -0800
commit4dcbe4bf096b39b4bae4c575f0fb2676759bc043 (patch)
treed9368fb44321a593d2cf5838250c5c9a6502e176 /api/oauth_test.go
parentc9960118460def1db045f6d8d4d1a6d9683eba94 (diff)
downloadchat-4dcbe4bf096b39b4bae4c575f0fb2676759bc043.tar.gz
chat-4dcbe4bf096b39b4bae4c575f0fb2676759bc043.tar.bz2
chat-4dcbe4bf096b39b4bae4c575f0fb2676759bc043.zip
fix OAuth provider when running test multiple times (#3782)
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 b719e17cc..47fc342ce 100644
--- a/api/oauth_test.go
+++ b/api/oauth_test.go
@@ -193,8 +193,8 @@ func TestGetOAuthAppsByUser(t *testing.T) {
} else {
apps := result.Data.([]*model.OAuthApp)
- if len(apps) != 4 {
- t.Fatal("incorrect number of apps should have been 4")
+ if len(apps) < 4 {
+ t.Fatal("incorrect number of apps should have been 4 or more")
}
}
}