Check that memcached is started before running SecureToken test

This commit is contained in:
Maxime Besson 2019-11-01 00:23:38 +01:00
parent 32126c4aca
commit cb541e89d4
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ SKIP: {
if ($@) {
skip 'Cache::Memcached not found', $maintests;
}
my $testmemd = new Cache::Memcached { 'servers' => ["127.0.0.1:11211"] };
unless ( $testmemd->stats->{hosts} ) {
skip 'Memcached not started', $maintests;
}
eval { require Apache::Session::Generate::MD5; };
if ($@) {
skip 'Apache::Session::Generate::MD5 not found', $maintests;