Add redis error message for tests
This commit is contained in:
parent
b4624f87ae
commit
82dd919ce6
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ class RedisCacheTest extends MemoryCacheTest
|
||||||
try {
|
try {
|
||||||
$this->cache = new RedisCache($host, $configMock);
|
$this->cache = new RedisCache($host, $configMock);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
static::markTestSkipped('Redis is not available.');
|
static::markTestSkipped('Redis is not available. Failure: ' . $e->getMessage());
|
||||||
}
|
}
|
||||||
return $this->cache;
|
return $this->cache;
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ class RedisCacheLockTest extends LockTest
|
||||||
$cache = new RedisCache($host, $configMock);
|
$cache = new RedisCache($host, $configMock);
|
||||||
$lock = new CacheLock($cache);
|
$lock = new CacheLock($cache);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
static::markTestSkipped('Redis is not available');
|
static::markTestSkipped('Redis is not available. Error: ' . $e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
return $lock;
|
return $lock;
|
||||||
|
|
Loading…
Reference in a new issue