aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/repo_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/repo_test.go')
-rw-r--r--integrations/repo_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/integrations/repo_test.go b/integrations/repo_test.go
index 37874c275d..130418f3fd 100644
--- a/integrations/repo_test.go
+++ b/integrations/repo_test.go
@@ -14,8 +14,7 @@ import (
func TestViewRepo(t *testing.T) {
prepareTestEnv(t)
- req, err := http.NewRequest("GET", "/user2/repo1", nil)
- assert.NoError(t, err)
+ req := NewRequest(t, "GET", "/user2/repo1")
resp := MakeRequest(req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
}