fixes and improvements

This commit is contained in:
Sergei Shitikov
2024-09-08 19:04:15 +02:00
parent aa2c1eb900
commit 357887542f
15 changed files with 140 additions and 104 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ namespace Testcontainers\Wait;
use Docker\Docker;
use Testcontainers\Exception\ContainerNotReadyException;
//TODO: not ready yet
class WaitForHttp implements WaitStrategy
{
public const METHOD_GET = 'GET';
@@ -61,7 +62,7 @@ class WaitForHttp implements WaitStrategy
$containerNetworks = $this->dockerClient->containerInspect($id)->getNetworkSettings()->getNetworks();
$containerAddress = null;
foreach ($containerNetworks as $network) {
if($network->getNetworkID() === $id) {
if ($network->getNetworkID() === $id) {
$containerAddress = $network->getIpAddress();
break;
}