Skip to content

Commit 1f2cb32

Browse files
committed
fixing tests
1 parent 5ee8950 commit 1f2cb32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/flush_adapter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
if ($adapterName === 'redis') {
1010
define('REDIS_HOST', $_SERVER['REDIS_HOST'] ?? '127.0.0.1');
11+
define('REDIS_SENTINEL_HOST', $_SERVER['REDIS_SENTINEL_HOST'] ?? '127.0.0.1');
1112

12-
$adapter = new Prometheus\Storage\Redis(['host' => REDIS_HOST]);
13+
$adapter = new Prometheus\Storage\Redis(['host' => REDIS_HOST, 'sentinel' => ['host' => REDIS_SENTINEL_HOST]]);
1314
} elseif ($adapterName === 'apc') {
1415
$adapter = new Prometheus\Storage\APC();
1516
} elseif ($adapterName === 'apcng') {

0 commit comments

Comments
 (0)