hydra-send-stats: add a --once option for testing

This commit is contained in:
Graham Christensen
2021-03-20 09:12:02 -04:00
parent 6bb180a0f2
commit 425c7ff17f
2 changed files with 25 additions and 1 deletions

View File

@ -12,7 +12,7 @@ use Test2::V0;
my $db = Hydra::Model::DB->new;
hydra_setup($db);
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-send-stats"));
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-send-stats", "--once"));
is($stdout, "", "hydra-send-stats stdout should be empty");
is($stderr, "", "hydra-send-stats stderr should be empty");
is($res, 0, "hydra-send-stats --once should exit zero");