From b25371687d784ddb4fe1dcf979cf81c5e47c79ca Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Fri, 14 Feb 2025 15:31:41 +0100 Subject: [PATCH] fix: update port configuration in GenericContainerTest for non standard port --- tests/Integration/GenericContainerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Integration/GenericContainerTest.php b/tests/Integration/GenericContainerTest.php index 6d7f124..182d04f 100644 --- a/tests/Integration/GenericContainerTest.php +++ b/tests/Integration/GenericContainerTest.php @@ -118,13 +118,13 @@ class GenericContainerTest extends TestCase public function testShouldReturnFirstMappedPort(): void { $container = (new GenericContainer('nginx')) - ->withPortGenerator(new FixedPortGenerator([8080])) + ->withPortGenerator(new FixedPortGenerator([9950])) ->withExposedPorts(80) - ->withWait(new WaitForHostPort(8080)) + ->withWait(new WaitForHostPort(9950)) ->start(); $firstMappedPort = $container->getFirstMappedPort(); - self::assertSame($firstMappedPort, 8080, 'First mapped port does not match 8080'); + self::assertSame($firstMappedPort, 9950, 'First mapped port does not match 9950'); $container->stop(); }