Fix TestAPIGetAll

This commit is contained in:
harryzcy 2022-11-01 04:02:31 -04:00
parent 8b0bc32902
commit 8f03691e0a
No known key found for this signature in database
GPG key ID: CC2953E050C19686

View file

@ -152,9 +152,10 @@ func TestAPIGetAll(t *testing.T) {
var apiOrgList []*api.Organization
DecodeJSON(t, resp, &apiOrgList)
assert.Len(t, apiOrgList, 7)
assert.Equal(t, "org25", apiOrgList[0].FullName)
assert.Equal(t, "public", apiOrgList[0].Visibility)
// accessing with a token will return all orgs
assert.Len(t, apiOrgList, 9)
assert.Equal(t, "org25", apiOrgList[1].FullName)
assert.Equal(t, "public", apiOrgList[1].Visibility)
}
func TestAPIOrgSearchEmptyTeam(t *testing.T) {