We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2183dff commit aa6382bCopy full SHA for aa6382b
tests/unit/Codeception/Module/RedisTest.php
@@ -59,11 +59,16 @@ protected function setUp()
59
}
60
/** @var ModuleContainer $container */
61
$container = make_container();
62
- $this->module = new Redis($container);
63
- $this->module->_setConfig(self::$config);
64
- $this->module->_initialize();
65
-
66
- $this->module->driver->flushDb();
+
+ try {
+ $this->module = new Redis($container);
+ $this->module->_setConfig(self::$config);
+ $this->module->_initialize();
67
68
+ $this->module->driver->flushDb();
69
+ } catch (Predis\Connection\ConnectionException $e) {
70
+ $this->markTestSkipped($e->getMessage());
71
+ }
72
73
$addMethods = [
74
'string' => 'set',
0 commit comments