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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/internal_test.go b/integrations/internal_test.go
index 3af079dc81..c22e951bc5 100644
--- a/integrations/internal_test.go
+++ b/integrations/internal_test.go
@@ -23,9 +23,9 @@ func assertProtectedBranch(t *testing.T, repoID int64, branchName string, isErr,
t.Log(reqURL)
req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", setting.InternalToken))
- resp := MakeRequest(req)
+ resp := MakeRequest(t, req, NoExpectedStatus)
if isErr {
- assert.EqualValues(t, 500, resp.HeaderCode)
+ assert.EqualValues(t, http.StatusInternalServerError, resp.HeaderCode)
} else {
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
var branch models.ProtectedBranch