]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_v2.t
t/psgi_v2: ignore warnings on missing P::M::ReverseProxy
[public-inbox.git] / t / psgi_v2.t
index 11aef5b3380c9c860e50161ae6e83fa83f27af6a..c13f5e71b18419300594c481720a2381b3d0dbf3 100644 (file)
@@ -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');
        }
 };