From 9e196c3a0bac78c68bf676d49f0bbc57b7496d23 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Tue, 7 Jul 2015 07:24:14 +0200 Subject: [PATCH] [TEST] Wait for test thread to join before --- .../java/org/elasticsearch/index/engine/InternalEngineTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java b/core/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java index bfd13a27c98..70a801abc70 100644 --- a/core/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java +++ b/core/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java @@ -991,6 +991,7 @@ public class InternalEngineTests extends ElasticsearchTestCase { } indexed.await(); IOUtils.close(engine); + thread.join(); } }