From cb8fc8c39d0a820b35ed3384c35122aaa66f9a6f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 12 Feb 2017 02:41:22 +0000 Subject: t/mime: quiet warnings for old versions of Email::Simple This is fixed in the newest versions of Email::Simple, but not the version in Debian jessie (2.203) --- t/mime.t | 1 + 1 file changed, 1 insertion(+) (limited to 't') diff --git a/t/mime.t b/t/mime.t index c4bdcf0d..b0e2290e 100644 --- a/t/mime.t +++ b/t/mime.t @@ -8,6 +8,7 @@ use Test::More; use_ok 'PublicInbox::MIME'; use PublicInbox::MsgIter; +local $SIG{__WARN__} = sub {}; my $msg = PublicInbox::MIME->new( 'From: Richard Hansen To: git@vger.kernel.org -- cgit v1.2.3-24-ge0c7 From 364de65f8a6b5729027cb70228312a141430122f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 14 Feb 2017 22:45:15 +0000 Subject: www: do not unescape PATH_INFO twice PSGI specs already require PATH_INFO to be unescaped; so our tests were wrong, too. --- t/cgi.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') diff --git a/t/cgi.t b/t/cgi.t index 092ad8c7..77409660 100644 --- a/t/cgi.t +++ b/t/cgi.t @@ -148,7 +148,7 @@ EOF $im->add($reply); $im->done; - my $res = cgi_run("/test/slashy%2fasdf\@example.com/raw"); + my $res = cgi_run("/test/slashy/asdf\@example.com/raw"); like($res->{body}, qr/Message-Id: <\Q$slashy_mid\E>/, "slashy mid raw hit"); -- cgit v1.2.3-24-ge0c7