Skip to content

Commit c078080

Browse files
committed
Support docker cluster (update test cases)
1 parent cf2e0b7 commit c078080

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

tests/RedisConnectionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function testRedisConnectionConfig()
4545
'host' => 'redis',
4646
'port' => 16379,
4747
'auth' => 'redis',
48+
'cluster' => false,
4849
'db' => 0,
4950
'timeout' => 0.0,
5051
'options' => [],
@@ -107,6 +108,7 @@ private function getRedisPool()
107108
'host' => 'redis',
108109
'auth' => 'redis',
109110
'port' => 16379,
111+
'cluster' => false,
110112
'pool' => [
111113
'min_connections' => 1,
112114
'max_connections' => 30,

tests/RedisProxyTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ private function getRedis($optinos = [])
7878
'host' => 'localhost',
7979
'auth' => null,
8080
'port' => 6379,
81+
'cluster' => false,
8182
'db' => 0,
8283
'options' => $optinos,
8384
'pool' => [

tests/RedisTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ private function getRedis()
7777
'host' => 'localhost',
7878
'auth' => null,
7979
'port' => 6379,
80+
'cluster' => false,
8081
'db' => 0,
8182
'pool' => [
8283
'min_connections' => 1,

0 commit comments

Comments
 (0)