4
use Test::Nginx::LWP::Chunkin;
6
plan tests => repeat_each() * 2 * blocks();
14
=== TEST 1: exceeding the default max chunks per buf setting (512)
18
client_body_buffer_size 1m;
24
[split //, 'a' x 1024]
25
--- response_body eval
30
=== TEST 2: NOT exceeding the custom max chunks per buf setting
34
client_body_buffer_size 1m;
35
chunkin_max_chunks_per_buf 1024;
41
[split //, 'a' x 1024]
42
--- response_body eval
47
=== TEST 3: JUST exceeding the custom max chunks per buf setting
51
client_body_buffer_size 1m;
52
chunkin_max_chunks_per_buf 1024;
58
[split //, 'a' x 1025]
59
--- response_body eval