Skip to content

Commit 2e94365

Browse files
committed
tests
1 parent 5c7066a commit 2e94365

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Prometheus/Storage/RedisSentinel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ private function initSentinel(): \RedisSentinel
140140
$options['ssl'] = $ssl;
141141
}
142142
// @phpstan-ignore arguments.count, argument.type
143+
echo(var_export($options,true));
143144
return new \RedisSentinel($options);
144145
}
145146

tests/Test/Prometheus/Storage/RedisSentinelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function itShouldThrowAnExceptionOnPrimaryFailure(): void
8888
public function itShouldGetMaster(): void
8989
{
9090
$redis = new Redis(['host' => REDIS_HOST,
91-
'sentinel' => ['host' => "redis-sentinel", 'enable' => true, 'service' => 'myprimary']
91+
'sentinel' => ['host' => REDIS_SENTINEL_HOST, 'enable' => true, 'service' => 'myprimary']
9292
]);
9393

9494
$redis->collect();

0 commit comments

Comments
 (0)