diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-05-05 22:13:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 16:13:59 +0200 |
commit | 46637b1164a2da6fed013d1acc151c79c192da83 (patch) | |
tree | fa9561745977b1fbc0bdd3d0435cfb56d74a1a3c /modules/test | |
parent | 7b18c67ac9bb283186e95e91c4ce4d1dedddb1cf (diff) | |
download | gitea-46637b1164a2da6fed013d1acc151c79c192da83.tar.gz gitea-46637b1164a2da6fed013d1acc151c79c192da83.zip |
Call MultipartForm.RemoveAll when request finishes (#19606) (#19607)
Diffstat (limited to 'modules/test')
-rw-r--r-- | modules/test/context_tests.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/test/context_tests.go b/modules/test/context_tests.go index 62ec21f6fe..0009468690 100644 --- a/modules/test/context_tests.go +++ b/modules/test/context_tests.go @@ -39,6 +39,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) |