From 04fc4b7e05bfbfee6cb7aa4f6c30d1af6f2d4d2d Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 5 May 2022 22:13:23 +0800 Subject: Call MultipartForm.RemoveAll when request finishes (#19606) --- modules/test/context_tests.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/test') 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) -- cgit v1.2.3