1
0
Fork 0
forked from forgejo/forgejo

Add more bench (#3161)

* Improve makefile + Add benchs

* Apply recommendations of @ethantkoenig
This commit is contained in:
Antoine GIRARD 2017-12-24 01:33:34 +01:00 committed by Lauris BH
parent a995ad90e1
commit cc7b8e3379
5 changed files with 124 additions and 37 deletions

View file

@ -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"))