Skip to content

Commit

Permalink
MDL-42071 caching Skip memcache(d) tests if no servers defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmerrill committed Jul 1, 2014
1 parent 7abaa5f commit cd230b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cache/stores/memcache/tests/memcache_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ public function test_valid_keys() {
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) {
Expand Down
4 changes: 4 additions & 0 deletions cache/stores/memcached/tests/memcached_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ public function test_valid_keys() {
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) {
Expand Down

0 comments on commit cd230b3

Please sign in to comment.