Skip to content

Commit 2dd0fb9

Browse files
committed
Fixed secure redis storage test.
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 847333e commit 2dd0fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Storages/RedisStorage/SecureTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function tearDown(): void
2626
$script = sprintf("for i, name in ipairs(redis.call('KEYS', '%s*')) do redis.call('DEL', name); end", RedisStorage::KEY_PREFIX);
2727

2828
$redis = new Redis();
29-
$redis->connect($this->getRedisHost(), $this->getRedisPort(), 'secret');
29+
$redis->connect($this->getRedisHost(), $this->getRedisPort());
3030
$redis->auth('secret');
3131
$redis->eval($script);
3232
$redis->close();
@@ -35,7 +35,7 @@ protected function tearDown(): void
3535
/** @test */
3636
public function valid_auth()
3737
{
38-
$storage = new RedisStorage($this->getRedisHost(), $this->getRedisPort());
38+
$storage = new RedisStorage($this->getRedisHost(), $this->getRedisPort(), 'secret');
3939
$key = 'key';
4040
$data = ['foo' => 1, 'bar' => new \DateTime()];
4141
$storage->save($data, $key);

0 commit comments

Comments
 (0)