Skip to content

Commit 6adf7be

Browse files
committed
fix: increase deletion timeout
Signed-off-by: Chris Laprun <[email protected]>
1 parent 4a3cad1 commit 6adf7be

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ jobs:
5858
it_profile="integration-tests-${{inputs.it-category}}"
5959
fi
6060
echo "Using profile: ${it_profile}"
61-
./mvnw ${MAVEN_ARGS} -B install -DskipTests -Pno-apt --file pom.xml
62-
./mvnw ${MAVEN_ARGS} -B package -P${it_profile} -Dfabric8-httpclient-impl.name=${{inputs.http-client}} --file pom.xml
61+
./mvnw ${MAVEN_ARGS} -T1C -B install -DskipTests -Pno-apt --file pom.xml
62+
./mvnw ${MAVEN_ARGS} -T1C -B package -P${it_profile} -Dfabric8-httpclient-impl.name=${{inputs.http-client}} --file pom.xml

operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/clusterscopedresource/ClusterScopedResourceIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import io.fabric8.kubernetes.api.model.ObjectMetaBuilder;
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

@@ -46,7 +47,7 @@ void crudOperationOnClusterScopedCustomResource() {
4647
});
4748

4849
operator.delete(resource);
49-
await().atMost(Duration.ofSeconds(30))
50+
await().atMost(Duration.ofSeconds(GARBAGE_COLLECTION_TIMEOUT_SECONDS))
5051
.untilAsserted(() -> assertThat(operator.get(ConfigMap.class, TEST_NAME)).isNull());
5152
}
5253

0 commit comments

Comments
 (0)