From: Karen Etheridge Date: Sun, 5 Mar 2023 21:03:16 +0000 (-0800) Subject: use Test::Needs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=HEAD;p=catagits%2FWeb-Simple.git use Test::Needs --- diff --git a/t/stream_test.t b/t/stream_test.t index 5295d8b..812ccda 100644 --- a/t/stream_test.t +++ b/t/stream_test.t @@ -1,12 +1,8 @@ use strict; use warnings FATAL => 'all'; -use Test::More ( - eval { require HTTP::Request::AsCGI } - ? 'no_plan' - : (skip_all => 'No HTTP::Request::AsCGI') -); - +use Test::More; +use Test::Needs 'HTTP::Request::AsCGI'; use HTTP::Request::Common qw(GET POST); my $app = StreamTest->new; @@ -42,3 +38,5 @@ sub run_request { },; } } + +done_testing;