mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-12 11:29:36 +00:00
Adjust tests for OpenSearch
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user