update context_1.17_test.go

This commit is contained in:
Kamandlou 2022-10-06 10:30:01 +03:30
parent c99b84ccfa
commit 294cae7521

View File

@ -32,9 +32,7 @@ func TestContextFormFileFailed17(t *testing.T) {
mw := multipart.NewWriter(buf)
defer func(mw *multipart.Writer) {
err := mw.Close()
if err != nil {
assert.Error(t, err)
}
assert.Equal(t, nil, err)
}(mw)
c, _ := CreateTestContext(httptest.NewRecorder())
c.Request, _ = http.NewRequest("POST", "/", nil)