We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b00aae commit 55fa170Copy full SHA for 55fa170
util/EnsureClusterAlive.php
@@ -2,6 +2,9 @@
2
3
declare(strict_types = 1);
4
5
+use Elasticsearch\ClientBuilder;
6
+use Elasticsearch\Tests\Utility;
7
+
8
error_reporting(E_ALL | E_STRICT);
9
10
// Set the default timezone. While this doesn't cause any tests to fail, PHP
@@ -17,8 +20,8 @@
17
20
// Include the composer autoloader
18
21
$autoloader = require_once dirname(__DIR__) . '/vendor/autoload.php';
19
22
-$client = \Elasticsearch\ClientBuilder::fromConfig([
- 'hosts' => [$_SERVER['ES_TEST_HOST']]
23
+$client = ClientBuilder::fromConfig([
24
+ 'hosts' => [Utility::getHost()]
25
]);
26
27
$count = 0;
0 commit comments