increase default timeout for mysql and mariadb, change image for testShouldReturnFirstMappedPort()

This commit is contained in:
Sergei Shitikov
2025-02-16 13:42:33 +01:00
parent 5f31bc7535
commit 1fb7efd7bd
3 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -114,14 +114,14 @@ class GenericContainerTest extends TestCase
public function testShouldReturnFirstMappedPort(): void
{
$container = (new GenericContainer('nginx'))
->withPortGenerator(new FixedPortGenerator([9950]))
->withExposedPorts(80)
->withWait(new WaitForHostPort(9950))
$container = (new GenericContainer('cristianrgreco/testcontainer:1.1.14'))
->withPortGenerator(new FixedPortGenerator([8080]))
->withExposedPorts(8080)
->withWait(new WaitForHostPort(8080))
->start();
$firstMappedPort = $container->getFirstMappedPort();
self::assertSame($firstMappedPort, 9950, 'First mapped port does not match 9950');
self::assertSame($firstMappedPort, 8080, 'First mapped port does not match 8080');
$container->stop();
}