summaryrefslogtreecommitdiffstats
path: root/integrations/api_pull_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/api_pull_test.go')
-rw-r--r--integrations/api_pull_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/integrations/api_pull_test.go b/integrations/api_pull_test.go
index 605f51ef96..b9bab920e1 100644
--- a/integrations/api_pull_test.go
+++ b/integrations/api_pull_test.go
@@ -21,8 +21,7 @@ func TestAPIViewPulls(t *testing.T) {
session := loginUser(t, "user2")
req := NewRequestf(t, "GET", "/api/v1/repos/%s/%s/pulls?state=all", owner.Name, repo.Name)
- resp := session.MakeRequest(t, req)
- assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
+ resp := session.MakeRequest(t, req, http.StatusOK)
var pulls []*api.PullRequest
DecodeJSON(t, resp, &pulls)