Skip to content

Commit

Permalink
set pulsar container timeout to 3min
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Jul 7, 2023
1 parent 6a4ae96 commit 0acc578
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;
import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -113,6 +114,7 @@ public void startUp() throws Exception {
new PulsarContainer(DockerImageName.parse(PULSAR_IMAGE_NAME))
.withNetwork(NETWORK)
.withNetworkAliases(PULSAR_HOST)
.withStartupTimeout(Duration.ofMinutes(3))
.withLogConsumer(
new Slf4jLogConsumer(
DockerLoggerFactory.getLogger(PULSAR_IMAGE_NAME)));
Expand Down

0 comments on commit 0acc578

Please sign in to comment.