mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 00:50:55 +00:00
Fix UT
This commit is contained in:
parent
e6a257f987
commit
2846043f2a
@ -731,6 +731,8 @@ func TestRouterEntityTooLargeCopyBody(t *testing.T) {
|
|||||||
BConfig.CopyRequestBody = true
|
BConfig.CopyRequestBody = true
|
||||||
BConfig.MaxMemory = 20
|
BConfig.MaxMemory = 20
|
||||||
|
|
||||||
|
BeeApp.Cfg.CopyRequestBody = true
|
||||||
|
BeeApp.Cfg.MaxMemory = 20
|
||||||
b := bytes.NewBuffer([]byte("barbarbarbarbarbarbarbarbarbar"))
|
b := bytes.NewBuffer([]byte("barbarbarbarbarbarbarbarbarbar"))
|
||||||
r, _ := http.NewRequest("POST", "/user/123", b)
|
r, _ := http.NewRequest("POST", "/user/123", b)
|
||||||
w := httptest.NewRecorder()
|
w := httptest.NewRecorder()
|
||||||
|
Loading…
Reference in New Issue
Block a user