Skip to content

Commit

Permalink
Add MySQLContainer startup timeout. (#32608)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhucong authored Aug 21, 2024
1 parent 1c09dcb commit dd520cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/e2e/env/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.8.2</version>
<scope>test-jar</scope>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
import org.apache.shardingsphere.test.e2e.env.container.atomic.storage.DockerStorageContainer;
import org.apache.shardingsphere.test.e2e.env.container.atomic.storage.config.StorageContainerConfiguration;

import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.Collection;
import java.util.Map.Entry;
import java.util.Optional;
Expand All @@ -50,6 +52,7 @@ protected void configure() {
setCommands(storageContainerConfig.getContainerCommand());
addEnvs(storageContainerConfig.getContainerEnvironments());
mapResources(storageContainerConfig.getMountedResources());
withStartupTimeout(Duration.of(120L, ChronoUnit.SECONDS));
super.configure();
}

Expand Down

0 comments on commit dd520cb

Please sign in to comment.