Skip to content

Commit 0f9c86b

Browse files
committed
Split port.
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent 2dd0fb9 commit 0f9c86b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113

114114
- name: Run redis with a password
115115
run: |
116-
docker run --rm --name redis -p $REDIS_PORT:6379 -d redis:${{ matrix.redis-versions }} redis-server --requirepass "secret" --port 6379
116+
docker run --rm --name redis -p $REDIS_PORT:6380 -d redis:${{ matrix.redis-versions }} redis-server --requirepass "secret" --port 6379
117117
118118
- name: Install dependencies
119119
run: |
@@ -124,4 +124,6 @@ jobs:
124124
run: docker ps -a
125125

126126
- name: Execute tests
127-
run: vendor/bin/phpunit --exclude-group=redis-insecure
127+
run: vendor/bin/phpunit --exclude-group=redis-insecure\
128+
env:
129+
REDIS_PORT: 6380

tests/Cache/RedisCache/InsecureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ protected function getRedisHost()
104104
*/
105105
protected function getRedisPort()
106106
{
107-
return (int) ($_ENV['REDIS_PORT'] ?? 6380);
107+
return (int) ($_ENV['REDIS_PORT'] ?? 6379);
108108
}
109109
}

tests/Storages/RedisStorage/InsecureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ protected function getRedisHost()
9090
*/
9191
protected function getRedisPort()
9292
{
93-
return (int) ($_ENV['REDIS_PORT'] ?? 6380);
93+
return (int) ($_ENV['REDIS_PORT'] ?? 6379);
9494
}
9595
}

0 commit comments

Comments
 (0)