diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-11-30 18:57:29 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-11-30 18:57:29 +0100 |
commit | e0a9067c42752fcdc1d5da25127c6b7c22983de3 (patch) | |
tree | 2adf6d2ccbe6c13554dbe6718aaea5e93f3845ea | |
parent | 45bf3e6974a3c664d920fc34783dabb1268a6039 (diff) | |
download | sonarqube-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.java | 1 |
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() { |