CertificateTest: more safe tearDown()
authorYann Cébron <yann.cebron@jetbrains.com>
Thu, 20 Aug 2015 08:08:15 +0000 (10:08 +0200)
committerYann Cébron <yann.cebron@jetbrains.com>
Thu, 20 Aug 2015 08:08:15 +0000 (10:08 +0200)
platform/platform-tests/testSrc/com/intellij/util/net/ssl/CertificateTest.java

index 3444b06681e6e3245db2484387d905437586d4e8..40038839ec7064c4a9c2720ab339b79eb5c03dc1 100644 (file)
@@ -177,9 +177,13 @@ public class CertificateTest extends LightPlatformTestCase {
       assertEmpty(myTrustManager.getCertificates());
     }
     finally {
-      myClient.close();
+      try {
+        myClient.close();
+      }
+      finally {
+        super.tearDown();
+      }
     }
-    super.tearDown();
   }
 
   private static String getTestDataPath() {