From: Simon Brandhof Date: Sun, 30 Nov 2014 17:57:29 +0000 (+0100) Subject: Fix thread leak in server tests X-Git-Tag: 5.0-RC1~147 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e0a9067c42752fcdc1d5da25127c6b7c22983de3;p=sonarqube.git Fix thread leak in server tests --- diff --git a/server/sonar-server/src/test/java/org/sonar/server/es/EsServerHolder.java b/server/sonar-server/src/test/java/org/sonar/server/es/EsServerHolder.java index f2102c861d4..28810012ff5 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/es/EsServerHolder.java +++ b/server/sonar-server/src/test/java/org/sonar/server/es/EsServerHolder.java @@ -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() {