diff options
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/api_issue_test.go | 4 | ||||
-rw-r--r-- | integrations/api_repo_test.go | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/integrations/api_issue_test.go b/integrations/api_issue_test.go index 81e5c44873..f932f79fee 100644 --- a/integrations/api_issue_test.go +++ b/integrations/api_issue_test.go @@ -186,7 +186,7 @@ func TestAPISearchIssues(t *testing.T) { req = NewRequest(t, "GET", link.String()) resp = session.MakeRequest(t, req, http.StatusOK) DecodeJSON(t, resp, &apiIssues) - assert.EqualValues(t, "12", resp.Header().Get("X-Total-Count")) + assert.EqualValues(t, "14", resp.Header().Get("X-Total-Count")) assert.Len(t, apiIssues, 10) //there are more but 10 is page item limit query.Add("limit", "20") @@ -194,7 +194,7 @@ func TestAPISearchIssues(t *testing.T) { req = NewRequest(t, "GET", link.String()) resp = session.MakeRequest(t, req, http.StatusOK) DecodeJSON(t, resp, &apiIssues) - assert.Len(t, apiIssues, 12) + assert.Len(t, apiIssues, 14) query = url.Values{"assigned": {"true"}, "state": {"all"}} link.RawQuery = query.Encode() diff --git a/integrations/api_repo_test.go b/integrations/api_repo_test.go index 8294a01773..b6d41fe1e0 100644 --- a/integrations/api_repo_test.go +++ b/integrations/api_repo_test.go @@ -77,9 +77,9 @@ func TestAPISearchRepo(t *testing.T) { expectedResults }{ {name: "RepositoriesMax50", requestURL: "/api/v1/repos/search?limit=50&private=false", expectedResults: expectedResults{ - nil: {count: 28}, - user: {count: 28}, - user2: {count: 28}}, + nil: {count: 30}, + user: {count: 30}, + user2: {count: 30}}, }, {name: "RepositoriesMax10", requestURL: "/api/v1/repos/search?limit=10&private=false", expectedResults: expectedResults{ nil: {count: 10}, |