Skip to content

Commit

Permalink
fix: increased timeout for failing test (#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
csviri authored Feb 28, 2023
1 parent a67ba0b commit 3812a7f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.javaoperatorsdk.operator;

import java.time.Duration;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

Expand Down Expand Up @@ -47,7 +49,8 @@ void crudOperationOnClusterScopedCustomResource() {
});

operator.delete(resource);
await().untilAsserted(() -> assertThat(operator.get(ConfigMap.class, TEST_NAME)).isNull());
await().atMost(Duration.ofSeconds(30))
.untilAsserted(() -> assertThat(operator.get(ConfigMap.class, TEST_NAME)).isNull());
}


Expand Down

0 comments on commit 3812a7f

Please sign in to comment.