8000 fix redis sentinel tests · symfony/symfony@7477e5f · GitHub
[go: up one dir, main page]

Skip to content

Commit 7477e5f

Browse files
author
Frederik Schwan
committed
fix redis sentinel tests
1 parent 20846e2 commit 7477e5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisTransportFactoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static function createTransportProvider(): iterable
6262
];
6363

6464
yield 'scheme "rediss" without options' => [
65-
'rediss://'.getenv('REDIS_HOST'),
65+
'rediss://'.getenv('REDIS_HOST').'/1?ssl[verify_peer]=0',
6666
[],
6767
];
6868

@@ -72,13 +72,13 @@ public static function createTransportProvider(): iterable
7272
];
7373

7474
yield 'scheme "rediss" with options' => [
75-
'rediss://'.getenv('REDIS_HOST'),
75+
'rediss://'.getenv('REDIS_HOST').'/1?ssl[verify_peer]=0',
7676
['stream' => 'bar', 'delete_after_ack' => true],
7777
];
7878

7979
yield 'redis_sentinel' => [
80-
'redis:?host[host1:5000]&host[host2:5000]&host[host3:5000]&sentinel_master=test&dbindex=0',
81-
[],
80+
'redis:?host['.str_replace(' ', ']&host[', getenv('REDIS_SENTINEL_HOSTS')).']',
81+
['sentinel_master' => getenv('REDIS_SENTINEL_SERVICE')],
8282
];
8383
}
8484

0 commit comments

Comments
 (0)
0