Skip to content

Commit a8273cc

Browse files
committed
destroy domain after tests
1 parent 4e0c224 commit a8273cc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/ITMultipleClusters.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ public void testCreateDomainTwoConfiguredCluster() throws Exception {
128128
Paths.get(template + ".org"), Paths.get(template), StandardCopyOption.REPLACE_EXISTING);
129129
Files.delete(Paths.get(template + ".org"));
130130
}
131-
domain.shutdownUsingServerStartPolicy();
131+
if (domain != null) {
132+
domain.destroy();
133+
}
132134
}
133135
logger.info("SUCCESS - " + testMethodName);
134136
}
@@ -194,7 +196,9 @@ public void testCreateDomainTwoMixedCluster() throws Exception {
194196
Paths.get(template + ".org"), Paths.get(template), StandardCopyOption.REPLACE_EXISTING);
195197
Files.delete(Paths.get(template + ".org"));
196198
}
197-
domain.shutdownUsingServerStartPolicy();
199+
if (domain != null) {
200+
domain.destroy();
201+
}
198202
}
199203
logger.info("SUCCESS - " + testMethodName);
200204
}

0 commit comments

Comments
 (0)