summaryrefslogtreecommitdiffstats
path: root/integrations/repo_branch_test.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2017-12-24 01:33:34 +0100
committerLauris BH <lauris@nix.lv>2017-12-24 02:33:34 +0200
commitcc7b8e3379f46469d3ec72b044fb0f993fec4d1b (patch)
tree5086b854166f4134da1e0430e87f499e904594aa /integrations/repo_branch_test.go
parenta995ad90e1055ad001a025a6d94fcc3d8ea87004 (diff)
downloadgitea-cc7b8e3379f46469d3ec72b044fb0f993fec4d1b.tar.gz
gitea-cc7b8e3379f46469d3ec72b044fb0f993fec4d1b.zip
Add more bench (#3161)
* Improve makefile + Add benchs * Apply recommendations of @ethantkoenig
Diffstat (limited to 'integrations/repo_branch_test.go')
-rw-r--r--integrations/repo_branch_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/repo_branch_test.go b/integrations/repo_branch_test.go
index c20fd6192c..fb33778cde 100644
--- a/integrations/repo_branch_test.go
+++ b/integrations/repo_branch_test.go
@@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/assert"
)
-func testCreateBranch(t *testing.T, session *TestSession, user, repo, oldRefSubURL, newBranchName string, expectedStatus int) string {
+func testCreateBranch(t testing.TB, session *TestSession, user, repo, oldRefSubURL, newBranchName string, expectedStatus int) string {
var csrf string
if expectedStatus == http.StatusNotFound {
csrf = GetCSRF(t, session, path.Join(user, repo, "src/branch/master"))