summaryrefslogtreecommitdiffstats
path: root/integrations/repo_branch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/repo_branch_test.go')
-rw-r--r--integrations/repo_branch_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/repo_branch_test.go b/integrations/repo_branch_test.go
index dbde276993..68806f347b 100644
--- a/integrations/repo_branch_test.go
+++ b/integrations/repo_branch_test.go
@@ -110,7 +110,7 @@ func testCreateBranches(t *testing.T, giteaURL *url.URL) {
},
}
for _, test := range tests {
- prepareTestEnv(t)
+ defer prepareTestEnv(t)()
session := loginUser(t, "user2")
if test.CreateRelease != "" {
createNewRelease(t, session, "/user2/repo1", test.CreateRelease, test.CreateRelease, false, false)
@@ -129,7 +129,7 @@ func testCreateBranches(t *testing.T, giteaURL *url.URL) {
}
func TestCreateBranchInvalidCSRF(t *testing.T) {
- prepareTestEnv(t)
+ defer prepareTestEnv(t)()
session := loginUser(t, "user2")
req := NewRequestWithValues(t, "POST", "user2/repo1/branches/_new/branch/master", map[string]string{
"_csrf": "fake_csrf",