]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
test: disable warning for Plack::Test::Impl
authorEric Wong <e@80x24.org>
Tue, 5 Apr 2016 03:31:31 +0000 (03:31 +0000)
committerEric Wong <e@80x24.org>
Tue, 5 Apr 2016 22:37:27 +0000 (22:37 +0000)
Not sure of a better way around this, but the Plack::Test
manpage documents this variable so it should be supported.

t/repobrowse_git_httpd.t

index a9eb0aabe99a09b8e62259abe6fae7da1eefa1a5..baa7be5930c4ae806531b66b8572769934f3c79b 100644 (file)
@@ -12,7 +12,10 @@ foreach my $mod (qw(Danga::Socket HTTP::Parser::XS HTTP::Date HTTP::Status
        plan skip_all => "$mod missing for repobrowse_git_httpd.t" if $@;
 }
 my $test = require './t/repobrowse_common_git.perl';
-$Plack::Test::Impl = 'ExternalServer';
+{
+       no warnings 'once';
+       $Plack::Test::Impl = 'ExternalServer';
+}
 use File::Temp qw/tempdir/;
 use Cwd qw/getcwd/;
 use IO::Socket;