summaryrefslogtreecommitdiffstats
path: root/integrations/internal_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/internal_test.go')
-rw-r--r--integrations/internal_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/integrations/internal_test.go b/integrations/internal_test.go
index 12d6fc8dc9..3af079dc81 100644
--- a/integrations/internal_test.go
+++ b/integrations/internal_test.go
@@ -19,11 +19,10 @@ import (
func assertProtectedBranch(t *testing.T, repoID int64, branchName string, isErr, canPush bool) {
reqURL := fmt.Sprintf("/api/internal/branch/%d/%s", repoID, url.QueryEscape(branchName))
- req, err := http.NewRequest("GET", reqURL, nil)
+ req := NewRequest(t, "GET", reqURL)
t.Log(reqURL)
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", setting.InternalToken))
- assert.NoError(t, err)
resp := MakeRequest(req)
if isErr {
assert.EqualValues(t, 500, resp.HeaderCode)