mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 13:22:09 +08:00
update context_1.17_test.go
This commit is contained in:
parent
c99b84ccfa
commit
294cae7521
@ -32,9 +32,7 @@ func TestContextFormFileFailed17(t *testing.T) {
|
|||||||
mw := multipart.NewWriter(buf)
|
mw := multipart.NewWriter(buf)
|
||||||
defer func(mw *multipart.Writer) {
|
defer func(mw *multipart.Writer) {
|
||||||
err := mw.Close()
|
err := mw.Close()
|
||||||
if err != nil {
|
assert.Equal(t, nil, err)
|
||||||
assert.Error(t, err)
|
|
||||||
}
|
|
||||||
}(mw)
|
}(mw)
|
||||||
c, _ := CreateTestContext(httptest.NewRecorder())
|
c, _ := CreateTestContext(httptest.NewRecorder())
|
||||||
c.Request, _ = http.NewRequest("POST", "/", nil)
|
c.Request, _ = http.NewRequest("POST", "/", nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user