diff options
Diffstat (limited to 'integrations/issue_test.go')
-rw-r--r-- | integrations/issue_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/integrations/issue_test.go b/integrations/issue_test.go index 51fcc96f8c..3b486dc505 100644 --- a/integrations/issue_test.go +++ b/integrations/issue_test.go @@ -14,8 +14,7 @@ import ( func TestNoLoginViewIssues(t *testing.T) { prepareTestEnv(t) - req, err := http.NewRequest("GET", "/user2/repo1/issues", nil) - assert.NoError(t, err) + req := NewRequest(t, "GET", "/user2/repo1/issues") resp := MakeRequest(req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) } @@ -23,8 +22,7 @@ func TestNoLoginViewIssues(t *testing.T) { func TestNoLoginViewIssue(t *testing.T) { prepareTestEnv(t) - req, err := http.NewRequest("GET", "/user2/repo1/issues/1", nil) - assert.NoError(t, err) + req := NewRequest(t, "GET", "/user2/repo1/issues/1") resp := MakeRequest(req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) } |