From e0a9067c42752fcdc1d5da25127c6b7c22983de3 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Sun, 30 Nov 2014 18:57:29 +0100 Subject: [PATCH] Fix thread leak in server tests --- .../src/test/java/org/sonar/server/es/EsServerHolder.java | 1 + 1 file changed, 1 insertion(+) 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() { -- 2.39.5