diff options
Diffstat (limited to 'integrations/api_team_test.go')
-rw-r--r-- | integrations/api_team_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/integrations/api_team_test.go b/integrations/api_team_test.go index 4b2a79a8cc..279014c6ca 100644 --- a/integrations/api_team_test.go +++ b/integrations/api_team_test.go @@ -5,7 +5,6 @@ package integrations import ( - "fmt" "net/http" "testing" @@ -22,8 +21,7 @@ func TestAPITeam(t *testing.T) { user := models.AssertExistsAndLoadBean(t, &models.User{ID: teamUser.UID}).(*models.User) session := loginUser(t, user.Name) - url := fmt.Sprintf("/api/v1/teams/%d", teamUser.TeamID) - req := NewRequest(t, "GET", url) + req := NewRequestf(t, "GET", "/api/v1/teams/%d", teamUser.TeamID) resp := session.MakeRequest(t, req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) |