fix: exceptions should be ignored in until the condition is met (#24478)

closes #24477
This commit is contained in:
Steven Hawkins 2023-11-02 03:41:16 -04:00 committed by GitHub
parent 9ef9c944d0
commit a6f6a52897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ public class KeycloakDeploymentTest extends BaseOperatorTest {
Resource<StatefulSet> stsResource = k8sclient.resources(StatefulSet.class).withName(deploymentName);
Resource<Keycloak> 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);