Check that memcached is started before running SecureToken test
This commit is contained in:
parent
32126c4aca
commit
cb541e89d4
|
@ -11,6 +11,11 @@ SKIP: {
|
||||||
if ($@) {
|
if ($@) {
|
||||||
skip 'Cache::Memcached not found', $maintests;
|
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; };
|
eval { require Apache::Session::Generate::MD5; };
|
||||||
if ($@) {
|
if ($@) {
|
||||||
skip 'Apache::Session::Generate::MD5 not found', $maintests;
|
skip 'Apache::Session::Generate::MD5 not found', $maintests;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user