From 4e28e00fcc5c75f85eee84e823384d05ec00cbe6 Mon Sep 17 00:00:00 2001 From: Oleg Zhulnev Date: Sun, 24 Mar 2024 15:43:30 +0300 Subject: [PATCH] fix invalid tests which sets invalid hosts parameter --- tests/Base.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Base.php b/tests/Base.php index a9748b00f..2fceea4fa 100644 --- a/tests/Base.php +++ b/tests/Base.php @@ -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(),