X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fcgi.t;h=ac2c69fc8425485525e92f91ae81e90d0849eda4;hb=6c02bc3c3035734bb458305a312d73df2d446c11;hp=d92749b3d98ec52053dab204134207ff210c4c6c;hpb=7daecda382e558c93304cccfa0285f66f35015ab;p=public-inbox.git diff --git a/t/cgi.t b/t/cgi.t index d92749b3..ac2c69fc 100644 --- a/t/cgi.t +++ b/t/cgi.t @@ -48,9 +48,8 @@ my $im = PublicInbox::Import->new($git, 'test', $addr); { local $ENV{HOME} = $home; - # ensure successful message delivery - { - my $mime = Email::MIME->new(<new(< To: You Cc: $addr @@ -60,15 +59,10 @@ Date: Thu, 01 Jan 1970 00:00:00 +0000 zzzzzz EOF - $im->add($mime); - $im->done; - my $rev = `git --git-dir=$maindir rev-list HEAD`; - like($rev, qr/\A[a-f0-9]{40}/, "good revision committed"); - } + $im->add($mime); # deliver a reply, too - { - my $reply = Email::MIME->new(<new(< To: Me Cc: $addr @@ -82,12 +76,8 @@ Me wrote: what? EOF - $im->add($reply); - $im->done; - my $rev = `git --git-dir=$maindir rev-list HEAD`; - like($rev, qr/\A[a-f0-9]{40}/, "good revision committed"); - } - + $im->add($reply); + $im->done; } # obvious failures, first @@ -118,7 +108,7 @@ EOF like($res->{head}, qr/Status:\s*206/i, "info/refs partial past end OK"); is($res->{body}, substr($orig, 5), 'partial body OK past end'); } -use Data::Dumper; + # atom feeds { local $ENV{HOME} = $home;