From dc25939b7c72b81bbfb7cc51700cadde32380ba6 Mon Sep 17 00:00:00 2001 From: uboness Date: Thu, 3 Jan 2013 22:54:37 +0100 Subject: [PATCH] fixed hunspell test to clean up properly, this time, for realz --- .../integration/indices/analyze/HunspellServiceTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/elasticsearch/test/integration/indices/analyze/HunspellServiceTests.java b/src/test/java/org/elasticsearch/test/integration/indices/analyze/HunspellServiceTests.java index 9e247f87713..48ea572b3c8 100644 --- a/src/test/java/org/elasticsearch/test/integration/indices/analyze/HunspellServiceTests.java +++ b/src/test/java/org/elasticsearch/test/integration/indices/analyze/HunspellServiceTests.java @@ -28,8 +28,7 @@ import org.elasticsearch.indices.analysis.HunspellService; import org.elasticsearch.node.Node; import org.elasticsearch.node.internal.InternalNode; import org.elasticsearch.test.integration.AbstractNodesTests; -import org.testng.annotations.AfterClass; -import org.testng.annotations.AfterTest; +import org.testng.annotations.AfterMethod; import org.testng.annotations.Test; import static org.hamcrest.MatcherAssert.assertThat; @@ -42,7 +41,7 @@ import static org.hamcrest.Matchers.notNullValue; public class HunspellServiceTests extends AbstractNodesTests { - @AfterTest + @AfterMethod public void closeNodes() { closeAllNodes(); }