diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-07-07 15:36:47 -0400 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-07-07 21:36:47 +0200 |
commit | f1adaef45849fc260b07be39a39b9c1ee5146923 (patch) | |
tree | bc33151ef4021ae14adf2e6cfc694b9e4729cef8 /integrations/internal_test.go | |
parent | 5651cc7413640f12a9eb8dee64d332ea9597afce (diff) | |
download | gitea-f1adaef45849fc260b07be39a39b9c1ee5146923.tar.gz gitea-f1adaef45849fc260b07be39a39b9c1ee5146923.zip |
Less verbose integration tests (#2123)
* Helper functions for intergration test boilerplate
Diffstat (limited to 'integrations/internal_test.go')
-rw-r--r-- | integrations/internal_test.go | 4 |
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 |