From 82dd919ce6889e673f7628c88617959cf1d8f28a Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 18 Oct 2020 21:13:29 +0200 Subject: [PATCH] Add redis error message for tests --- tests/src/Core/Cache/RedisCacheTest.php | 2 +- tests/src/Core/Lock/RedisCacheLockTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/Core/Cache/RedisCacheTest.php b/tests/src/Core/Cache/RedisCacheTest.php index fcedf81e1..adc7bca4d 100644 --- a/tests/src/Core/Cache/RedisCacheTest.php +++ b/tests/src/Core/Cache/RedisCacheTest.php @@ -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; } diff --git a/tests/src/Core/Lock/RedisCacheLockTest.php b/tests/src/Core/Lock/RedisCacheLockTest.php index c373747bd..10be602c1 100644 --- a/tests/src/Core/Lock/RedisCacheLockTest.php +++ b/tests/src/Core/Lock/RedisCacheLockTest.php @@ -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;