From: Marius Gavrilescu Date: Sun, 15 Nov 2020 11:21:05 +0000 (+0000) Subject: Small fixes for previous commit X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=ecc543574d5a3f9551e9a45994b4413d7b9cdbbf;p=gruntmaster-daemon.git Small fixes for previous commit * Add current directory to $PATH so the new test passes * Add Test::HTTP::LocalServer to build dependencies * Plan for 3 tests instead of using [done_testing] --- diff --git a/Makefile.PL b/Makefile.PL index 46c5cb5..adc109a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -18,6 +18,7 @@ WriteMakefile( Hash::Merge 0 List::Util 0 Log::Log4perl 0 + Test::HTTP::LocalServer 0 Test::More 0 YAML::Tiny 0/, }, diff --git a/t/02-send-results-request.t b/t/02-send-results-request.t index 816e991..6d6eff8 100644 --- a/t/02-send-results-request.t +++ b/t/02-send-results-request.t @@ -13,7 +13,7 @@ use Hash::Merge qw/merge/; use JSON qw/encode_json decode_json/; use Log::Log4perl; use Test::HTTP::LocalServer; -use Test::More; +use Test::More tests => 3; use YAML::Tiny qw/LoadFile/; my $server = Test::HTTP::LocalServer->spawn; @@ -30,6 +30,7 @@ log4perl.appender.stderr.layout.ConversionPattern = [\%d] [\%F{1}:\%M{1}:\%L] [\ CONF Log::Log4perl->init(\$log_conf); +$ENV{PATH} = getcwd . ':' . $ENV{PATH}; my $tempdir = tempdir "gruntmasterd-testingXXXX", TMPDIR => 1, CLEANUP => 1; chmod 0777, $tempdir; @@ -64,5 +65,3 @@ sub send_request() { send_request(); $server->stop; - -done_testing();