MDL-42071 caching Skip memcache(d) tests if no servers defined

This commit is contained in:
Eric Merrill 2014-07-01 10:25:10 -04:00
parent 7abaa5f46c
commit cd230b31b6
2 changed files with 8 additions and 0 deletions

View File

@ -141,6 +141,10 @@ class cachestore_memcache_test extends cachestore_tests {
public function test_clustered() {
$this->resetAfterTest(true);
if (!defined('TEST_CACHESTORE_MEMCACHE_TESTSERVERS')) {
$this->markTestSkipped();
}
$testservers = explode("\n", trim(TEST_CACHESTORE_MEMCACHE_TESTSERVERS));
if (count($testservers) < 2) {

View File

@ -141,6 +141,10 @@ class cachestore_memcached_test extends cachestore_tests {
public function test_clustered() {
$this->resetAfterTest(true);
if (!defined('TEST_CACHESTORE_MEMCACHED_TESTSERVERS')) {
$this->markTestSkipped();
}
$testservers = explode("\n", trim(TEST_CACHESTORE_MEMCACHED_TESTSERVERS));
if (count($testservers) < 2) {