change per_page value from 200 to 100

This commit is contained in:
Akshay Pratinav 2019-03-15 08:00:20 -07:00
parent e73f6501f0
commit 6d15fe004e
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ func (p *GitHubProvider) hasOrg(accessToken string) (bool, error) {
pn := 1
for {
params := url.Values{
"per_page": {"200"},
"per_page": {"100"},
"page": {strconv.Itoa(pn)},
}
@ -148,7 +148,7 @@ func (p *GitHubProvider) hasOrgAndTeam(accessToken string) (bool, error) {
pn := 1
for {
params := url.Values{
"per_page": {"200"},
"per_page": {"100"},
"page": {strconv.Itoa(pn)},
}

View File

@ -31,7 +31,7 @@ func testGitHubBackend(payload []string) *httptest.Server {
pathToQueryMap := map[string][]string{
"/user": {""},
"/user/emails": {""},
"/user/orgs": {"page=1&per_page=200", "page=2&per_page=200", "page=3&per_page=200"},
"/user/orgs": {"page=1&per_page=100", "page=2&per_page=100", "page=3&per_page=100"},
}
return httptest.NewServer(http.HandlerFunc(