Skip to content

Commit

Permalink
Add dynamic host for Connection object in Client connection test
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed May 18, 2015
1 parent a1baca8 commit aa358b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/Elastica/Test/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ public function testOneInvalidConnection()
$client = $this->_getClient();

// First connection work, second should not work
$connection1 = new Connection(array('port' => '9100', 'timeout' => 2));
$connection2 = new Connection(array('port' => '9200', 'timeout' => 2));
$connection1 = new Connection(array('port' => '9100', 'timeout' => 2, 'host' => $this->_getHost()));
$connection2 = new Connection(array('port' => '9200', 'timeout' => 2, 'host' => $this->_getHost()));

$client->setConnections(array($connection1, $connection2));

Expand Down

0 comments on commit aa358b0

Please sign in to comment.