minor #45044 [Cache] fix tests with RedisArray (nicolas-grekas)
This PR was merged into the 4.4 branch.
Discussion
----------
[Cache] fix tests with RedisArray
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | -
| License | MIT
| Doc PR | -
Commits
-------
c0879ecd65
[Cache] fix tests with RedisArray
This commit is contained in:
commit
99b4885e7e
|
@ -71,7 +71,7 @@ jobs:
|
|||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
coverage: "none"
|
||||
extensions: "memcached,redis,xsl,ldap"
|
||||
extensions: "memcached,redis-5.3.4,xsl,ldap"
|
||||
ini-values: date.timezone=Europe/Paris,memory_limit=-1,default_socket_timeout=10,session.gc_probability=0,apc.enable_cli=1,zend.assertions=1
|
||||
php-version: "${{ matrix.php }}"
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ class ProxyAdapterAndRedisAdapterTest extends AbstractRedisAdapterTest
|
|||
);
|
||||
|
||||
$cache = $this->createCachePool(1);
|
||||
$cache->clear();
|
||||
$value = rand();
|
||||
$item = $cache->getItem('foo');
|
||||
$setCacheItemExpiry($item, 0);
|
||||
|
|
|
@ -185,7 +185,7 @@ trait RedisTrait
|
|||
|
||||
$initializer = static function ($redis) use ($connect, $params, $dsn, $auth, $hosts, $tls) {
|
||||
$host = $hosts[0]['host'] ?? $hosts[0]['path'];
|
||||
$port = $hosts[0]['port'] ?? null;
|
||||
$port = $hosts[0]['port'] ?? 6379;
|
||||
|
||||
if (isset($hosts[0]['host']) && $tls) {
|
||||
$host = 'tls://'.$host;
|
||||
|
|
Reference in New Issue