Skip to content

Commit

Permalink
setting the timeout after setting the waiting strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
janheise committed May 24, 2024
1 parent ca26595 commit 2d64be2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,9 @@ private static GenericContainer<?> createRunningContainer(NodeContainerConfig co

.withEnv("GRAYLOG_ENABLE_DEBUG_RESOURCES", "true") // see RestResourcesModule#addDebugResources
.withEnv(config.configParams)
.withExposedPorts(config.portsToExpose())
.withStartupTimeout(Duration.of(600, SECONDS));
.withExposedPorts(config.portsToExpose());

container.waitingFor(getWaitStrategy(container.getEnvMap()));
container.waitingFor(getWaitStrategy(container.getEnvMap())).withStartupTimeout(Duration.of(600, SECONDS));

if (!includeFrontend) {
container.withEnv("DEVELOPMENT", "true");
Expand Down

0 comments on commit 2d64be2

Please sign in to comment.