2021-03-20 13:06:54 +00:00
|
|
|
use feature 'unicode_strings';
|
|
|
|
use strict;
|
2021-08-19 20:36:43 +00:00
|
|
|
use warnings;
|
2021-03-20 13:06:54 +00:00
|
|
|
use Setup;
|
2022-02-09 18:40:51 +00:00
|
|
|
use Hydra::Helper::Exec;
|
2021-03-20 13:06:54 +00:00
|
|
|
|
|
|
|
my %ctx = test_init();
|
|
|
|
|
|
|
|
require Hydra::Schema;
|
|
|
|
require Hydra::Model::DB;
|
|
|
|
|
|
|
|
use Test2::V0;
|
|
|
|
|
|
|
|
my $db = Hydra::Model::DB->new;
|
|
|
|
hydra_setup($db);
|
|
|
|
|
2021-03-20 13:12:02 +00:00
|
|
|
my ($res, $stdout, $stderr) = captureStdoutStderr(60, ("hydra-send-stats", "--once"));
|
2021-03-20 13:06:54 +00:00
|
|
|
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");
|
|
|
|
|
|
|
|
done_testing;
|