Skip to content

Commit

Permalink
fixed e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxiaojian committed Jan 26, 2024
1 parent a36fb68 commit 516b52c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import org.testcontainers.containers.MySQLContainer;
import org.testcontainers.containers.output.Slf4jLogConsumer;
import org.testcontainers.containers.wait.strategy.Wait;
import org.testcontainers.images.PullPolicy;
import org.testcontainers.lifecycle.Startables;
import org.testcontainers.utility.DockerLoggerFactory;

Expand Down Expand Up @@ -223,6 +224,7 @@ private MySQLContainer startMySqlContainer() {
.withNetworkAliases(MYSQL_CONTAINER_HOST)
.withExposedPorts(MYSQL_PORT)
.waitingFor(Wait.forHealthcheck())
.withImagePullPolicy(PullPolicy.alwaysPull())
.withLogConsumer(
new Slf4jLogConsumer(DockerLoggerFactory.getLogger(MYSQL_IMAGE)));

Expand Down

0 comments on commit 516b52c

Please sign in to comment.