Commit 5a6af5fc authored by Alex Brainman's avatar Alex Brainman

net/http: remove tmp file created in TestMultipartReaderOrder

LGTM=minux.ma
R=golang-codereviews, minux.ma
CC=golang-codereviews
https://golang.org/cl/66470043
parent 3e37720b
......@@ -218,6 +218,7 @@ func TestMultipartReaderOrder(t *testing.T) {
if err := req.ParseMultipartForm(25); err != nil {
t.Fatalf("ParseMultipartForm: %v", err)
}
defer req.MultipartForm.RemoveAll()
if _, err := req.MultipartReader(); err == nil {
t.Fatal("expected an error from MultipartReader after call to ParseMultipartForm")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment