diff options
Diffstat (limited to 'integrations/api_comment_test.go')
-rw-r--r-- | integrations/api_comment_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/integrations/api_comment_test.go b/integrations/api_comment_test.go index 16ba69a8bf..cdf411036a 100644 --- a/integrations/api_comment_test.go +++ b/integrations/api_comment_test.go @@ -5,7 +5,6 @@ package integrations import ( - "fmt" "net/http" "testing" @@ -25,9 +24,8 @@ func TestAPIListComments(t *testing.T) { repoOwner := models.AssertExistsAndLoadBean(t, &models.User{ID: repo.OwnerID}).(*models.User) session := loginUser(t, repoOwner.Name) - requestUrl := fmt.Sprintf("/api/v1/repos/%s/%s/issues/%d/comments", + req := NewRequestf(t, "GET", "/api/v1/repos/%s/%s/issues/%d/comments", repoOwner.Name, repo.Name, issue.Index) - req := NewRequest(t, "GET", requestUrl) resp := session.MakeRequest(t, req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) |