diff options
author | Eric Wong <e@80x24.org> | 2020-12-16 04:39:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-17 10:02:43 +0000 |
commit | d26c2837f479b41182946a6540aad95d34b2b594 (patch) | |
tree | 7f80c45303278362602f18165533d25820b7b4d9 /t/psgi_v2.t | |
parent | 82e118b8f333d63742ddbc8f9cf995b1f1c12643 (diff) | |
download | public-inbox-d26c2837f479b41182946a6540aad95d34b2b594.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.
Diffstat (limited to 't/psgi_v2.t')
-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 0ceb26ed..bdc1a3c4 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'); } }; |