From 7c23b329ceb6ae682564d980efa40715bfdb25d1 Mon Sep 17 00:00:00 2001 From: des Date: Fri, 19 Oct 2007 09:46:58 +0000 Subject: [PATCH] When testing pipelined POST requests, send enough data to actually exercise request copying loop. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2129 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-tools/regress/lib/Varnish/Test/Case/Pipeline.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/varnish-tools/regress/lib/Varnish/Test/Case/Pipeline.pm b/varnish-tools/regress/lib/Varnish/Test/Case/Pipeline.pm index b407c6a9..99235556 100644 --- a/varnish-tools/regress/lib/Varnish/Test/Case/Pipeline.pm +++ b/varnish-tools/regress/lib/Varnish/Test/Case/Pipeline.pm @@ -41,6 +41,8 @@ our %CONTENT = ( 'Williams' => "I have always depended upon the kindness of strangers.", ); +our $REPS = 4096; + our $VCL = <new_client; foreach my $author (sort keys %CONTENT) { - $self->post($client, "/$author", [], $CONTENT{$author}); + $self->post($client, "/$author", [], $CONTENT{$author} x $REPS); } foreach my $author (sort keys %CONTENT) { $self->wait(); @@ -89,7 +91,7 @@ sub server($$$) { my ($author) = ($request->uri =~ m/(\w+)$/); if ($CONTENT{$author}) { if ($request->method eq 'POST') { - die unless $request->content =~ qr/\Q$CONTENT{$author}\E/; + die unless $request->content eq $CONTENT{$author} x $REPS; } $response->content($CONTENT{$author}); } else { -- 2.39.5