From ecb64020de845d26b017c48967a6f74ca6e63b7f Mon Sep 17 00:00:00 2001 From: Bernardo Coferre Date: Thu, 29 Sep 2022 11:18:34 -0300 Subject: [PATCH] OIDC: Fix wait strategy not respecting timeout --- .../devservices/keycloak/KeycloakDevServicesProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/KeycloakDevServicesProcessor.java b/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/KeycloakDevServicesProcessor.java index ec87b2893adb6..aba26ac8346d3 100644 --- a/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/KeycloakDevServicesProcessor.java +++ b/extensions/oidc/deployment/src/main/java/io/quarkus/oidc/deployment/devservices/keycloak/KeycloakDevServicesProcessor.java @@ -410,6 +410,8 @@ public QuarkusOidcContainer(DockerImageName dockerImageName, OptionalInt fixedEx this.fixedExposedPort = fixedExposedPort; this.startCommand = startCommand; this.showLogs = showLogs; + + super.setWaitStrategy(Wait.forLogMessage(".*Keycloak.*started.*", 1)); } @Override @@ -482,7 +484,6 @@ protected void configure() { } LOG.infof("Using %s powered Keycloak distribution", keycloakX ? "Quarkus" : "WildFly"); - super.setWaitStrategy(Wait.forLogMessage(".*Keycloak.*started.*", 1)); } private Integer findRandomPort() {