Skip to content

Commit

Permalink
Fix client builder in tests as it builds empty hos incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Mar 24, 2024
1 parent 15b5932 commit 5a3cbd2
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 @@ -46,11 +46,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'] = $config['transport_config']['node_pool'] ?? new TraceableSimpleNodePool(
new RoundRobin(),
Expand Down

0 comments on commit 5a3cbd2

Please sign in to comment.