fix OAuth provider when running test multiple times (#3782)

This commit is contained in:
enahum
2016-08-11 11:47:12 -05:00
committed by Corey Hulen
parent c996011846
commit 4dcbe4bf09

View File

@@ -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")
}
}
}