Adjust tests for OpenSearch

This commit is contained in:
Sergei Shitikov
2024-09-01 19:12:46 +02:00
parent ea07a96091
commit 93c9895027
5 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class MySQLContainerTest extends ContainerTestCase
public function testMySQLContainer(): void
{
$pdo = new \PDO(
sprintf('mysql:host=%s;port=3306', self::$container->getAddress()),
sprintf('mysql:host=%s;port=3306', '127.0.0.1'),
'bar',
'baz',
);
@@ -21,7 +21,7 @@ class OpenSearchContainerTest extends ContainerTestCase
public function testOpenSearch(): void
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, sprintf('http://%s:%d', self::$container->getAddress(), 9200));
curl_setopt($ch, CURLOPT_URL, sprintf('http://%s:%d', '127.0.0.1', 9200));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = (string) curl_exec($ch);