MDL-56273 cache: Use is_ready() to determine if cache is really ready.

This commit is contained in:
Russell Smith
2016-10-31 19:44:05 +11:00
parent f9599c77cc
commit a330e83ade
3 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -60,7 +60,8 @@ class cachestore_memcache_test extends cachestore_tests {
$instance = new cachestore_memcache('Memcache Test', cachestore_memcache::unit_test_configuration());
$instance->initialise($definition);
if (!$instance) { // Something prevented memcache store to be inited (extension, TEST_CACHESTORE_MEMCACHE_TESTSERVERS...).
if (!$instance->is_ready()) {
// Something prevented memcache store to be inited (extension, TEST_CACHESTORE_MEMCACHE_TESTSERVERS...).
$this->markTestSkipped();
}