Skip to content

Commit

Permalink
fix invalid tests which sets invalid hosts parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Mar 24, 2024
1 parent c416ac8 commit 4e28e00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ protected static function showDeprecated(): void
}

/**
* @param array $params Additional configuration params. Host and Port are already set
* @param array $config Additional configuration params. Host and Port are already set
*/
protected function _getClient(array $params = [], ?LoggerInterface $logger = null): Client
protected function _getClient(array $config = [], ?LoggerInterface $logger = null): Client
{
$config = $params ?: [$this->_getHost().':'.$this->_getPort()];
$config['hosts'] ??= [$this->_getHost().':'.$this->_getPort()];

$config['transport_config']['node_pool'] ??= new TraceableSimpleNodePool(
new RoundRobin(),
Expand Down

0 comments on commit 4e28e00

Please sign in to comment.