Skip to content

Commit e5bfdb7

Browse files
committed
tests
1 parent e986196 commit e5bfdb7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
<group>Performance</group>
1616
</exclude>
1717
</groups>
18+
<php>
19+
<env name="REDIS_SENTINEL_HOST" value="redis-sentinel"/>
20+
</php>
1821
</phpunit>

tests/Test/Prometheus/Storage/RedisSentinelTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ public function itShouldThrowAnExceptionOnPrimaryFailure(): void
8787
*/
8888
public function itShouldGetMaster(): void
8989
{
90+
echo(REDIS_SENTINEL_HOST);
9091
$redis = new Redis(['host' => REDIS_HOST,
91-
'sentinel' => ['host' => 'redis-sentinel', 'enable' => true, 'service' => 'myprimary']
92+
'sentinel' => ['host' => REDIS_SENTINEL_HOST, 'enable' => true, 'service' => 'myprimary']
9293
]);
9394

9495
$redis->collect();

0 commit comments

Comments
 (0)