From 2846043f2a742262057539d2cd7a9f176377a42b Mon Sep 17 00:00:00 2001 From: Ming Deng Date: Sun, 20 Sep 2020 14:27:30 +0000 Subject: [PATCH] Fix UT --- pkg/server/web/router_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/server/web/router_test.go b/pkg/server/web/router_test.go index da8efbcb..a59cde8b 100644 --- a/pkg/server/web/router_test.go +++ b/pkg/server/web/router_test.go @@ -731,6 +731,8 @@ func TestRouterEntityTooLargeCopyBody(t *testing.T) { BConfig.CopyRequestBody = true BConfig.MaxMemory = 20 + BeeApp.Cfg.CopyRequestBody = true + BeeApp.Cfg.MaxMemory = 20 b := bytes.NewBuffer([]byte("barbarbarbarbarbarbarbarbarbar")) r, _ := http.NewRequest("POST", "/user/123", b) w := httptest.NewRecorder()