From cc99febf716ee3e5f36a75c5ac8b4beb3b80a93d Mon Sep 17 00:00:00 2001 From: Sergei Shitikov Date: Sun, 16 Feb 2025 13:15:50 +0100 Subject: [PATCH] try to solve testShouldReturnFirstMappedPort --- tests/Integration/GenericContainerTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/Integration/GenericContainerTest.php b/tests/Integration/GenericContainerTest.php index 6d7f124..88977cf 100644 --- a/tests/Integration/GenericContainerTest.php +++ b/tests/Integration/GenericContainerTest.php @@ -112,14 +112,11 @@ class GenericContainerTest extends TestCase $container->stop(); } - /** - * @throws \JsonException - */ public function testShouldReturnFirstMappedPort(): void { - $container = (new GenericContainer('nginx')) + $container = (new GenericContainer('cristianrgreco/testcontainer:1.1.14')) ->withPortGenerator(new FixedPortGenerator([8080])) - ->withExposedPorts(80) + ->withExposedPorts(8080) ->withWait(new WaitForHostPort(8080)) ->start(); $firstMappedPort = $container->getFirstMappedPort();