File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -632,10 +632,8 @@ public void testAddRemoveDomainUpdateOperatorHC() throws Exception {
632
632
verifyOperatorDomainManagement (operator , domainnew , true );
633
633
testCompletedSuccessfully = true ;
634
634
} finally {
635
- if (domain != null )
636
- TestUtils .deleteWeblogicDomainResources (domain .getDomainUid ());
637
- if (domainnew != null )
638
- domainnew .destroy ();
635
+ if (domain != null ) TestUtils .deleteWeblogicDomainResources (domain .getDomainUid ());
636
+ if (domainnew != null ) domainnew .destroy ();
639
637
if (operator != null ) {
640
638
operator .destroy ();
641
639
}
@@ -670,14 +668,13 @@ public void testDeleteOperatorButNotDomain() throws Exception {
670
668
operator = null ;
671
669
domain .testWlsLivenessProbe ();
672
670
testCompletedSuccessfully = true ;
673
- } finally {
674
- if (domain != null )
675
- TestUtils .deleteWeblogicDomainResources (domain .getDomainUid ());
676
- if (operator != null ) {
677
- operator .destroy ();
678
- }
679
- number ++;
671
+ } finally {
672
+ if (domain != null ) TestUtils .deleteWeblogicDomainResources (domain .getDomainUid ());
673
+ if (operator != null ) {
674
+ operator .destroy ();
680
675
}
676
+ number ++;
677
+ }
681
678
logger .info ("SUCCESS - " + testMethodName );
682
679
}
683
680
You can’t perform that action at this time.
0 commit comments