From e127cf5e1cb318db42fdd8f823ccbdffef249052 Mon Sep 17 00:00:00 2001 From: Rob Landers Date: Sun, 24 Mar 2024 16:28:15 +0100 Subject: [PATCH] update test (#688) This makes the file size 6mb-ish, more than the 2mb batching that PHP does. I verified this fails on 0e163a0 (main prior to #686). --- frankenphp_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frankenphp_test.go b/frankenphp_test.go index 43120607..783cb447 100644 --- a/frankenphp_test.go +++ b/frankenphp_test.go @@ -540,7 +540,7 @@ func testLargeRequest(t *testing.T, opts *testOptions) { req := httptest.NewRequest( "POST", fmt.Sprintf("http://example.com/large-request.php?i=%d", i), - strings.NewReader(strings.Repeat("f", 1_048_576)), + strings.NewReader(strings.Repeat("f", 6_048_576)), ) w := httptest.NewRecorder() handler(w, req) @@ -548,7 +548,7 @@ func testLargeRequest(t *testing.T, opts *testOptions) { resp := w.Result() body, _ := io.ReadAll(resp.Body) - assert.Contains(t, string(body), fmt.Sprintf("Request body size: 1048576 (%d)", i)) + assert.Contains(t, string(body), fmt.Sprintf("Request body size: 6048576 (%d)", i)) }, opts) }