From a6f6a5289700620840b6b88f3473fd492d5f9c77 Mon Sep 17 00:00:00 2001 From: Steven Hawkins Date: Thu, 2 Nov 2023 03:41:16 -0400 Subject: [PATCH] fix: exceptions should be ignored in until the condition is met (#24478) closes #24477 --- .../operator/testsuite/integration/KeycloakDeploymentTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/src/test/java/org/keycloak/operator/testsuite/integration/KeycloakDeploymentTest.java b/operator/src/test/java/org/keycloak/operator/testsuite/integration/KeycloakDeploymentTest.java index 23ba52cb33..3c11de21af 100644 --- a/operator/src/test/java/org/keycloak/operator/testsuite/integration/KeycloakDeploymentTest.java +++ b/operator/src/test/java/org/keycloak/operator/testsuite/integration/KeycloakDeploymentTest.java @@ -107,7 +107,7 @@ public class KeycloakDeploymentTest extends BaseOperatorTest { Resource stsResource = k8sclient.resources(StatefulSet.class).withName(deploymentName); Resource keycloakResource = k8sclient.resources(Keycloak.class).withName(deploymentName); // expect no errors and not ready, which means we'll keep reconciling - Awaitility.await().untilAsserted(() -> { + Awaitility.await().ignoreExceptions().untilAsserted(() -> { assertThat(stsResource.get()).isNotNull(); Keycloak keycloak = keycloakResource.get(); CRAssert.assertKeycloakStatusCondition(keycloak, KeycloakStatusCondition.HAS_ERRORS, false);