Skip to content

Commit 1b4ee65

Browse files
committed
fix: properly close watches at the end of tests
1 parent fb80c67 commit 1b4ee65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

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

135+
operator.close();
136+
135137
log.info("Deleting namespace {} and stopping operator", TEST_NAMESPACE);
136138
Namespace namespace = k8sClient.namespaces().withName(TEST_NAMESPACE).get();
137139
if (namespace.getStatus().getPhase().equals("Active")) {

0 commit comments

Comments
 (0)