summaryrefslogtreecommitdiffstats
path: root/integrations/api_branch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/api_branch_test.go')
-rw-r--r--integrations/api_branch_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/integrations/api_branch_test.go b/integrations/api_branch_test.go
index 5a28c1f494..aff3f223c0 100644
--- a/integrations/api_branch_test.go
+++ b/integrations/api_branch_test.go
@@ -17,7 +17,8 @@ func testAPIGetBranch(t *testing.T, branchName string, exists bool) {
prepareTestEnv(t)
session := loginUser(t, "user2")
- req := NewRequestf(t, "GET", "/api/v1/repos/user2/repo1/branches/%s", branchName)
+ token := getTokenForLoggedInUser(t, session)
+ req := NewRequestf(t, "GET", "/api/v1/repos/user2/repo1/branches/%s?token=%s", branchName, token)
resp := session.MakeRequest(t, req, NoExpectedStatus)
if !exists {
assert.EqualValues(t, http.StatusNotFound, resp.Code)