Skip to content

Commit

Permalink
OIDC: Fix wait strategy not respecting timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardocoferre committed Sep 29, 2022
1 parent 2ea8de0 commit ecb6402
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit ecb6402

Please sign in to comment.