From a4a1a74a2f60ec587d1538aa910b08ef3977c8a9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 16 Dec 2020 04:39:37 +0000 Subject: [PATCH] t/psgi_v2: ignore warnings on missing P::M::ReverseProxy 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) --- t/psgi_v2.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'); } }; -- 2.44.0