Skip to content

Commit

Permalink
Use proper wait-time for jar and docker launch modes.
Browse files Browse the repository at this point in the history
This was already done for native launcher, but it was
mistakenly left out for these launch modes.

Relates to quarkusio#17767

(cherry picked from commit bdfb7bf)
  • Loading branch information
geoand authored and gsmet committed Dec 1, 2021
1 parent e3dd18e commit 231ba95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import static io.quarkus.test.junit.IntegrationTestUtil.DEFAULT_HTTPS_PORT;
import static io.quarkus.test.junit.IntegrationTestUtil.DEFAULT_PORT;
import static io.quarkus.test.junit.IntegrationTestUtil.DEFAULT_WAIT_TIME_SECONDS;

import java.time.Duration;
import java.util.Iterator;
import java.util.List;
import java.util.OptionalInt;
import java.util.OptionalLong;
import java.util.ServiceLoader;

import org.eclipse.microprofile.config.Config;
Expand Down Expand Up @@ -43,8 +41,7 @@ public DockerContainerArtifactLauncher create(CreateContext context) {
launcher.init(new DefaultDockerInitContext(
config.getValue("quarkus.http.test-port", OptionalInt.class).orElse(DEFAULT_PORT),
config.getValue("quarkus.http.test-ssl-port", OptionalInt.class).orElse(DEFAULT_HTTPS_PORT),
Duration.ofSeconds(config.getValue("quarkus.test.jar-wait-time", OptionalLong.class)
.orElse(DEFAULT_WAIT_TIME_SECONDS)),
ConfigUtil.waitTimeValue(config),
config.getOptionalValue("quarkus.test.native-image-profile", String.class).orElse(null),
ConfigUtil.argLineValue(config),
context.devServicesLaunchResult(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

import static io.quarkus.test.junit.IntegrationTestUtil.DEFAULT_HTTPS_PORT;
import static io.quarkus.test.junit.IntegrationTestUtil.DEFAULT_PORT;
import static io.quarkus.test.junit.IntegrationTestUtil.DEFAULT_WAIT_TIME_SECONDS;

import java.nio.file.Path;
import java.time.Duration;
import java.util.Iterator;
import java.util.List;
import java.util.OptionalInt;
import java.util.OptionalLong;
import java.util.ServiceLoader;

import org.eclipse.microprofile.config.Config;
Expand Down Expand Up @@ -43,8 +41,7 @@ public JarArtifactLauncher create(CreateContext context) {
launcher.init(new DefaultJarInitContext(
config.getValue("quarkus.http.test-port", OptionalInt.class).orElse(DEFAULT_PORT),
config.getValue("quarkus.http.test-ssl-port", OptionalInt.class).orElse(DEFAULT_HTTPS_PORT),
Duration.ofSeconds(config.getValue("quarkus.test.jar-wait-time", OptionalLong.class)
.orElse(DEFAULT_WAIT_TIME_SECONDS)),
ConfigUtil.waitTimeValue(config),
config.getOptionalValue("quarkus.test.native-image-profile", String.class).orElse(null),
ConfigUtil.argLineValue(config),
context.devServicesLaunchResult(),
Expand Down

0 comments on commit 231ba95

Please sign in to comment.