Skip to content

Commit 278def8

Browse files
csvirimetacosm
authored andcommitted
fix: integration test timeout issue (#2547)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 706ef55 commit 278def8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: operator-framework/src/test/java/io/javaoperatorsdk/operator/dependent/generickubernetesresource/GenericKubernetesDependentTestBase.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import io.javaoperatorsdk.operator.dependent.generickubernetesresource.generickubernetesdependentstandalone.ConfigMapGenericKubernetesDependent;
1010
import io.javaoperatorsdk.operator.junit.LocallyRunOperatorExtension;
1111

12+
import static io.javaoperatorsdk.operator.IntegrationTestConstants.GARBAGE_COLLECTION_TIMEOUT_SECONDS;
1213
import static org.assertj.core.api.Assertions.assertThat;
1314
import static org.awaitility.Awaitility.await;
1415

@@ -38,7 +39,7 @@ void testReconciliation() {
3839

3940
extension().delete(resource);
4041

41-
await().timeout(Duration.ofSeconds(30)).untilAsserted(() -> {
42+
await().timeout(Duration.ofSeconds(GARBAGE_COLLECTION_TIMEOUT_SECONDS)).untilAsserted(() -> {
4243
var cm = extension().get(ConfigMap.class, TEST_RESOURCE_NAME);
4344
assertThat(cm).isNull();
4445
});

0 commit comments

Comments
 (0)