]> source.dussan.org Git - sonarqube.git/commitdiff
Fix thread leak in server tests
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 30 Nov 2014 17:57:29 +0000 (18:57 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 30 Nov 2014 17:57:29 +0000 (18:57 +0100)
server/sonar-server/src/test/java/org/sonar/server/es/EsServerHolder.java

index f2102c861d4bfa5552c6ca9fcfa3c38d3ee324c0..28810012ff5ffb64746a31e3a41b122f2b1e7f72 100644 (file)
@@ -81,6 +81,7 @@ public class EsServerHolder {
     if (!response.isAcknowledged()) {
       throw new IllegalStateException("Fail to delete all indices");
     }
+    client.close();
   }
 
   public static synchronized EsServerHolder get() {