]> source.dussan.org Git - nextcloud-server.git/commitdiff
Skip redis if not configured
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 22 Nov 2019 07:50:47 +0000 (08:50 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 27 Nov 2019 12:34:41 +0000 (13:34 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tests/lib/Memcache/RedisTest.php

index ba16b4a2bf1dc48478dbef197e23bbfe93d3db5c..e6a940599d7359c77969fd5393e98136b9b34b57 100644 (file)
@@ -17,6 +17,10 @@ class RedisTest extends Cache {
                        self::markTestSkipped('The redis extension is not available.');
                }
 
+               if (\OC::$server->getConfig()->getSystemValue('redis', []) === []) {
+                       self::markTestSkipped('Redis not configured in config.php');
+               }
+
                $errorOccurred = false;
                set_error_handler(
                        function($errno, $errstr) {