Skip to content

Commit

Permalink
Add MySQLContainer startup timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamhucong committed Aug 21, 2024
1 parent 3f71b8f commit 3b718a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/env/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<groupId>com.alibaba</groupId>
<artifactId>dns-cache-manipulator</artifactId>
<version>1.8.2</version>
<scope>test-jar</scope>
<type>test-jar</type>
</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 3b718a9

Please sign in to comment.