summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/modules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:32:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:32:01 +0000
commit7c0dc3ccb32ee21000826c2c5038c4a6f0b5e444 (patch)
tree408acec04220bfabbe9b06ad015775f694851a6e /debian/perl-framework/t/modules
parentAdding debian version 2.4.38-3+deb10u9. (diff)
downloadapache2-7c0dc3ccb32ee21000826c2c5038c4a6f0b5e444.tar.xz
apache2-7c0dc3ccb32ee21000826c2c5038c4a6f0b5e444.zip
Adding debian version 2.4.38-3+deb10u10.debian/2.4.38-3+deb10u10
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/perl-framework/t/modules')
-rw-r--r--debian/perl-framework/t/modules/buffer.t9
1 files changed, 7 insertions, 2 deletions
diff --git a/debian/perl-framework/t/modules/buffer.t b/debian/perl-framework/t/modules/buffer.t
index 84cc5bc..e508f37 100644
--- a/debian/perl-framework/t/modules/buffer.t
+++ b/debian/perl-framework/t/modules/buffer.t
@@ -24,10 +24,15 @@ foreach my $t (@testcases) {
## Big query ##
# 'foo' is 3 bytes, so 'foo' x 1000000 is ~3M, which is way over the default 'BufferSize'
- $r = POST($t->[0], content => $t->[1] x 1000000);
+ ### FIXME - testing with to x 10000 is confusing LWP's full-duplex
+ ### handling: https://github.com/libwww-perl/libwww-perl/issues/299
+ ### throttled down to a size which seems to work reliably for now
+ my $bigsize = 100000;
+
+ $r = POST($t->[0], content => $t->[1] x $bigsize);
# Checking for return code
ok t_cmp($r->code, 200, "Checking return code is '200'");
# Checking for content
- ok t_cmp($r->content, $t->[1] x 1000000, $r->content . ' equals ' . $t->[1]);
+ ok t_is_equal($r->content, $t->[1] x $bigsize);
}