diff --git a/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakMetricsConfigurationTest.java b/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakMetricsConfigurationTest.java index 31d9b8fd55fd..dbd4c3b15614 100644 --- a/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakMetricsConfigurationTest.java +++ b/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakMetricsConfigurationTest.java @@ -29,8 +29,9 @@ class KeycloakMetricsConfigurationTest { @BeforeEach - void setUpPort() { + void setUp() { RestAssured.port = 9001; + System.setProperty("KC_CACHE", "local"); // avoid flaky port conflicts } @RegisterExtension diff --git a/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakNegativeHealthCheckTest.java b/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakNegativeHealthCheckTest.java index a821544d1abb..e90261e81aae 100644 --- a/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakNegativeHealthCheckTest.java +++ b/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakNegativeHealthCheckTest.java @@ -45,6 +45,7 @@ public void testReadinessDown() { agroalDataSource.close(); RestAssured.port = 9001; + System.setProperty("KC_CACHE", "local"); // avoid flaky port conflicts given() .when().get("/health/ready") .then() diff --git a/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakPathConfigurationTest.java b/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakPathConfigurationTest.java index c392ff4d5e25..052322852a07 100644 --- a/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakPathConfigurationTest.java +++ b/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakPathConfigurationTest.java @@ -30,8 +30,9 @@ class KeycloakPathConfigurationTest { @BeforeEach - void setUpPort() { + void setUp() { RestAssured.port = 9001; + System.setProperty("KC_CACHE", "local"); // avoid flaky port conflicts } @RegisterExtension diff --git a/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakReadyHealthCheckTest.java b/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakReadyHealthCheckTest.java index 12e079979d97..8726e9c19ec0 100644 --- a/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakReadyHealthCheckTest.java +++ b/quarkus/deployment/src/test/java/test/org/keycloak/quarkus/services/health/KeycloakReadyHealthCheckTest.java @@ -30,8 +30,9 @@ public class KeycloakReadyHealthCheckTest { @BeforeEach - void setUpPort() { + void setUp() { RestAssured.port = 9001; + System.setProperty("KC_CACHE", "local"); // avoid flaky port conflicts } @RegisterExtension