mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 05:16:35 +08:00
add: remove multipart create temp file
This commit is contained in:
parent
1c445fe13f
commit
f9165f0f31
@ -85,6 +85,7 @@ func TestContextFormFile(t *testing.T) {
|
||||
}
|
||||
|
||||
assert.NoError(t, c.SaveUploadedFile(f, "test"))
|
||||
os.Remove("test")
|
||||
}
|
||||
|
||||
func TestContextMultipartForm(t *testing.T) {
|
||||
@ -106,6 +107,7 @@ func TestContextMultipartForm(t *testing.T) {
|
||||
}
|
||||
|
||||
assert.NoError(t, c.SaveUploadedFile(f.File["file"][0], "test"))
|
||||
os.Remove("test")
|
||||
}
|
||||
|
||||
func TestSaveUploadedOpenFailed(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user