mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-09 07:29:40 +00:00
Remove WaitForNothing. WaitForContainerRunning can be used as a basic implementation instead.
This commit is contained in:
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Testcontainers\Container;
|
||||
|
||||
use Testcontainers\Wait\WaitForExec;
|
||||
use Testcontainers\Wait\WaitForLog;
|
||||
|
||||
class MySQLContainer extends GenericContainer
|
||||
{
|
||||
@@ -12,6 +12,8 @@ class MySQLContainer extends GenericContainer
|
||||
{
|
||||
parent::__construct('mysql:' . $version);
|
||||
$this->withExposedPorts(3306);
|
||||
|
||||
$this->withWait(new WaitForLog('ready for connections'));
|
||||
$this->withEnvironment('MYSQL_ROOT_PASSWORD', $mysqlRootPassword);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user