sentinel default to no password when replica authentication is used (#807)

* set default nopass if password is not provided

* remove debug output

* added tests for noauth sentinel

* Update SentinelReplication.php

Co-authored-by: Mehmet Tolga Avcioglu <mehmet.avcioglu@pusula.net.tr>
Co-authored-by: Till Krüss <tillkruss@users.noreply.github.com>
This commit is contained in:
Mehmet Tolga Avcioglu
2022-10-06 18:14:47 +03:00
committed by GitHub
parent bb6c1a7b6d
commit 1a0eb7ee85
3 changed files with 31 additions and 1 deletions
@@ -62,7 +62,6 @@ class StreamConnectionTest extends PredisConnectionTestCase
*/
public function testDoesntThrowErrorOnInvalidResource(): void
{
var_dump('PHP v' . PHP_VERSION);
$this->expectException('Predis\Connection\ConnectionException');
$cmdSelect = RawCommand::create('SELECT', '1000');