From 61716bd8f70f55f2c5d4090c87700f6b9b6fc632 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Fri, 9 Jun 2017 20:41:36 -0400 Subject: Display URLs in integration test logs (#1924) --- integrations/api_repo_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'integrations/api_repo_test.go') diff --git a/integrations/api_repo_test.go b/integrations/api_repo_test.go index 64649efe1d..e4f907cc91 100644 --- a/integrations/api_repo_test.go +++ b/integrations/api_repo_test.go @@ -16,8 +16,7 @@ import ( func TestAPIUserReposNotLogin(t *testing.T) { assert.NoError(t, models.LoadFixtures()) - req, err := http.NewRequest("GET", "/api/v1/users/user2/repos", nil) - assert.NoError(t, err) + req := NewRequest(t, "GET", "/api/v1/users/user2/repos") resp := MakeRequest(req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) } @@ -25,8 +24,7 @@ func TestAPIUserReposNotLogin(t *testing.T) { func TestAPISearchRepoNotLogin(t *testing.T) { assert.NoError(t, models.LoadFixtures()) - req, err := http.NewRequest("GET", "/api/v1/repos/search?q=Test", nil) - assert.NoError(t, err) + req := NewRequest(t, "GET", "/api/v1/repos/search?q=Test") resp := MakeRequest(req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) } -- cgit v1.2.3