about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-16 04:39:37 +0000
committerEric Wong <e@80x24.org>2020-12-26 19:47:35 +0000
commita4a1a74a2f60ec587d1538aa910b08ef3977c8a9 (patch)
tree8a6f254c19851d29dedc4dbe241715156db885fb
parent1cbb6243533fc2d4b34997d2500a180cd4c48999 (diff)
downloadpublic-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.t6
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');
         }
 };