Skip to content

Commit c548ae2

Browse files
committed
Fixed ClientBuilder in YamlRunnerTest
1 parent 156bf4c commit c548ae2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Elasticsearch/Tests/Utility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function getHost(): ?string
3030
case 'oss':
3131
return 'http://localhost:9200';
3232
case 'xpack':
33-
return 'https://elastic:changeme@instance:9200';
33+
return 'https://elastic:changeme@localhost:9200';
3434
}
3535
return null;
3636
}

tests/Elasticsearch/Tests/YamlRunnerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function setUp()
159159
if (getenv('TEST_SUITE') === 'xpack') {
160160
$this->client->setSSLVerification(__DIR__ . '/../../../.ci/certs/ca.crt');
161161
}
162-
$this->client->build();
162+
$this->client = $this->client->build();
163163
}
164164

165165
public function tearDown()

0 commit comments

Comments
 (0)