mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-09 15:29:48 +00:00
Code reuse on working with docker networks
This commit is contained in:
@@ -58,7 +58,7 @@ class WaitForHttp implements WaitInterface
|
||||
|
||||
public function wait(string $id): void
|
||||
{
|
||||
$containerAddress = $this->getContainerAddress(containerId: $id);
|
||||
$containerAddress = self::dockerContainerAddress(containerId: $id);
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, sprintf('http://%s:%d%s', $containerAddress, $this->port, $this->path));
|
||||
|
||||
Reference in New Issue
Block a user