diff options
author | Eric Wong <e@80x24.org> | 2020-12-16 04:39:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-26 19:47:35 +0000 |
commit | a4a1a74a2f60ec587d1538aa910b08ef3977c8a9 (patch) | |
tree | 8a6f254c19851d29dedc4dbe241715156db885fb | |
parent | 1cbb6243533fc2d4b34997d2500a180cd4c48999 (diff) | |
download | public-inbox-a4a1a74a2f60ec587d1538aa910b08ef3977c8a9.tar.gz |
Plack::Test::ExternalServer doesn't depend on Plack::Middleware::ReverseProxy, so we need to account for some warnings in stderr if P::M::RP is missing. (cherry picked from commit d26c2837f479b41182946a6540aad95d34b2b594)
-rw-r--r-- | t/psgi_v2.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 11aef5b3..c13f5e71 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -40,7 +40,11 @@ my $run_httpd = sub { Plack::Test::ExternalServer::test_psgi(client => $client); $td->join('TERM'); open my $fh, '<', $err or BAIL_OUT $!; - is(do { local $/; <$fh> }, '', 'no errors'); + my $e = do { local $/; <$fh> }; + if ($e =~ s/^Plack::Middleware::ReverseProxy missing,\n//gms) { + $e =~ s/^URL generation for redirects .*\n//gms; + } + is($e, '', 'no errors'); } }; |