Skip to content

Commit 732807d

Browse files
committed
fix: revert closing operator when tests are finished
The problem is that if we close the operator then the delete events never get handled and the finalizers are not removed leading to the namespace never being deleted, thus failing the test…
1 parent 80cd321 commit 732807d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

operator-framework/src/test/java/io/javaoperatorsdk/operator/IntegrationTestSupport.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ public void teardownIfSuccess(TestRun test) {
132132
try {
133133
test.run();
134134

135-
operator.close();
136-
137135
log.info("Deleting namespace {} and stopping operator", TEST_NAMESPACE);
138136
Namespace namespace = k8sClient.namespaces().withName(TEST_NAMESPACE).get();
139137
if (namespace.getStatus().getPhase().equals("Active")) {

0 commit comments

Comments
 (0)