diff options
Diffstat (limited to 'integrations/api_team_test.go')
-rw-r--r-- | integrations/api_team_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/integrations/api_team_test.go b/integrations/api_team_test.go index b8d21be539..f59d95c712 100644 --- a/integrations/api_team_test.go +++ b/integrations/api_team_test.go @@ -21,7 +21,8 @@ func TestAPITeam(t *testing.T) { user := models.AssertExistsAndLoadBean(t, &models.User{ID: teamUser.UID}).(*models.User) session := loginUser(t, user.Name) - req := NewRequestf(t, "GET", "/api/v1/teams/%d", teamUser.TeamID) + token := getTokenForLoggedInUser(t, session) + req := NewRequestf(t, "GET", "/api/v1/teams/%d?token="+token, teamUser.TeamID) resp := session.MakeRequest(t, req, http.StatusOK) var apiTeam api.Team |