minor #33220 [Cache] Fix predis test (xuanquynh)
This PR was submitted for the 4.4 branch but it was squashed and merged into the 4.3 branch instead (closes #33220).
Discussion
----------
[Cache] Fix predis test
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | N/A #... <!-- #-prefixed issue number(s), if any -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
If `REDIS_HOST` is different from "localhost", `PredisAdapterTest` will go wrong.
Try these instructions below:
```bash
export REDIS_HOST=another_than_localhost
./phpunit src/Symfony/Component/Cache/Tests
```
> note: configure redis server with hostname "another_than_localhost"
![Screenshot from 2019-08-18 09-40-57](https://user-images.githubusercontent.com/16967350/63219445-667c6c80-c19c-11e9-9fce-ec42837ddf27.png)
Commits
-------
99f73fcca8
[Cache] Fix predis test
This commit is contained in:
commit
a553173439
@ -34,7 +34,7 @@ class PredisAdapterTest extends AbstractRedisAdapterTest
|
|||||||
|
|
||||||
$params = [
|
$params = [
|
||||||
'scheme' => 'tcp',
|
'scheme' => 'tcp',
|
||||||
'host' => 'localhost',
|
'host' => $redisHost,
|
||||||
'port' => 6379,
|
'port' => 6379,
|
||||||
'persistent' => 0,
|
'persistent' => 0,
|
||||||
'timeout' => 3,
|
'timeout' => 3,
|
||||||
|
Reference in New Issue
Block a user