summaryrefslogtreecommitdiffstats
path: root/modules/test
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-05-05 22:13:23 +0800
committerGitHub <noreply@github.com>2022-05-05 16:13:23 +0200
commit04fc4b7e05bfbfee6cb7aa4f6c30d1af6f2d4d2d (patch)
treef587d103068be565bd3d61e19f113f255f713763 /modules/test
parent7b089c465d9f851454be91ca209ab26782648a45 (diff)
downloadgitea-04fc4b7e05bfbfee6cb7aa4f6c30d1af6f2d4d2d.tar.gz
gitea-04fc4b7e05bfbfee6cb7aa4f6c30d1af6f2d4d2d.zip
Call MultipartForm.RemoveAll when request finishes (#19606)
Diffstat (limited to 'modules/test')
-rw-r--r--modules/test/context_tests.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/test/context_tests.go b/modules/test/context_tests.go
index a05b221af8..c745a106c5 100644
--- a/modules/test/context_tests.go
+++ b/modules/test/context_tests.go
@@ -38,6 +38,7 @@ func MockContext(t *testing.T, path string) *context.Context {
Resp: context.NewResponse(resp),
Locale: &mockLocale{},
}
+ defer ctx.Close()
requestURL, err := url.Parse(path)
assert.NoError(t, err)