]> iEval git - gruntmaster-daemon.git/commitdiff
Small fixes for previous commit
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 15 Nov 2020 11:21:05 +0000 (11:21 +0000)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 17 Apr 2022 18:38:46 +0000 (21:38 +0300)
* 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]

Makefile.PL
t/02-send-results-request.t

index 46c5cb58614cfb63ee4339d69db1aeb9a091280b..adc109a4de9324fe3694261160461144d102e0cf 100644 (file)
@@ -18,6 +18,7 @@ WriteMakefile(
                   Hash::Merge 0
                   List::Util 0
                   Log::Log4perl 0
+                  Test::HTTP::LocalServer 0
                   Test::More 0
                   YAML::Tiny 0/,
        },
index 816e99189668fcd0ae7370d9e5b724d0826b8742..6d6eff84154510e16fb4eb6af48b457c62b7cd01 100644 (file)
@@ -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();
This page took 0.026108 seconds and 4 git commands to generate.