Skip to content

Commit a81cb49

Browse files
committed
test will not remove finalizers from custom resources
1 parent 00dc3a8 commit a81cb49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

operator-framework/src/test/java/com/github/containersolutions/operator/ConcurrencyIT.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ public void manyResourcesGetCreatedUpdatedAndDeleted() {
6363
log.info("Updating {} resources", NUMBER_OF_RESOURCES_UPDATED);
6464
// update some resources
6565
for (int i = 0; i < NUMBER_OF_RESOURCES_UPDATED; i++) {
66-
TestCustomResource tcr = integrationTest.createTestCustomResource(String.valueOf(i));
66+
TestCustomResource tcr = (TestCustomResource) integrationTest.getCrOperations()
67+
.inNamespace(TEST_NAMESPACE)
68+
.withName(IntegrationTestSupport.TEST_CUSTOM_RESOURCE_PREFIX + i)
69+
.get();
6770
tcr.getSpec().setValue(i + UPDATED_SUFFIX);
6871
integrationTest.getCrOperations().inNamespace(TEST_NAMESPACE).createOrReplace(tcr);
6972
}

0 commit comments

Comments
 (0)