aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-11-30 18:57:29 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-11-30 18:57:29 +0100
commite0a9067c42752fcdc1d5da25127c6b7c22983de3 (patch)
tree2adf6d2ccbe6c13554dbe6718aaea5e93f3845ea
parent45bf3e6974a3c664d920fc34783dabb1268a6039 (diff)
downloadsonarqube-e0a9067c42752fcdc1d5da25127c6b7c22983de3.tar.gz
sonarqube-e0a9067c42752fcdc1d5da25127c6b7c22983de3.zip
Fix thread leak in server tests
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/es/EsServerHolder.java1
1 files changed, 1 insertions, 0 deletions
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() {