]> git.mxchange.org Git - friendica.git/commitdiff
Add redis error message for tests
authorPhilipp <admin@philipp.info>
Sun, 18 Oct 2020 19:13:29 +0000 (21:13 +0200)
committerPhilipp <admin@philipp.info>
Sun, 18 Oct 2020 19:13:29 +0000 (21:13 +0200)
tests/src/Core/Cache/RedisCacheTest.php
tests/src/Core/Lock/RedisCacheLockTest.php

index fcedf81e11297974c1d9fd14ccccbe3e40edfe38..adc7bca4d6d2941c85352d2902718d26e7f503d9 100644 (file)
@@ -60,7 +60,7 @@ class RedisCacheTest extends MemoryCacheTest
                try {
                        $this->cache = new RedisCache($host, $configMock);
                } catch (Exception $e) {
-                       static::markTestSkipped('Redis is not available.');
+                       static::markTestSkipped('Redis is not available. Failure: ' . $e->getMessage());
                }
                return $this->cache;
        }
index c373747bdca8c45356f9b4f46ca54e20f1ed9b9c..10be602c17f5ed4f57e4abac33cc27385715d58e 100644 (file)
@@ -64,7 +64,7 @@ class RedisCacheLockTest extends LockTest
                        $cache = new RedisCache($host, $configMock);
                        $lock = new CacheLock($cache);
                } catch (Exception $e) {
-                       static::markTestSkipped('Redis is not available');
+                       static::markTestSkipped('Redis is not available. Error: ' . $e->getMessage());
                }
 
                return $lock;