]> source.dussan.org Git - sonarqube.git/commitdiff
Make HazelcastClusterTest more robust.
authorEric Hartmann <hartmann.eric@gmail.com>
Fri, 1 Sep 2017 13:22:58 +0000 (15:22 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 5 Sep 2017 12:24:13 +0000 (14:24 +0200)
server/sonar-main/src/test/java/org/sonar/application/cluster/HazelcastClusterTest.java

index d07cbcb93d4d1914a14356b61d80f477dc8aca70..81d5a818191a0e042a925119db2e19882bd37c85 100644 (file)
@@ -33,7 +33,7 @@ import java.util.List;
 import java.util.UUID;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
-import org.junit.AfterClass;
+import org.junit.After;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.DisableOnDebug;
@@ -70,8 +70,8 @@ public class HazelcastClusterTest {
   @Rule
   public ExpectedException expectedException = ExpectedException.none();
 
-  @AfterClass
-  public static void closeHazelcastClients() {
+  @After
+  public void closeHazelcastClients() {
     closeAllHazelcastClients();
   }