Skip to content

Commit

Permalink
update test (#688)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
withinboredom committed Mar 24, 2024
1 parent d973206 commit e127cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frankenphp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,15 +540,15 @@ 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)

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)
}

Expand Down

0 comments on commit e127cf5

Please sign in to comment.