Skip to content

Commit

Permalink
Extend ElasticsearchLuceneTestCase rather than LuceneTestCase
Browse files Browse the repository at this point in the history
LuceneTestCase misses some thread filters that might fail a test
since a background cluster is still running from a previous test.
  • Loading branch information
s1monw committed Feb 7, 2014
1 parent 8fabd47 commit 7a84b94
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
import org.apache.lucene.search.similarities.DefaultSimilarity;
import org.apache.lucene.search.similarities.Similarity;
import org.apache.lucene.store.Directory;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util._TestUtil;
import org.elasticsearch.test.ElasticsearchLuceneTestCase;

import java.io.IOException;
import java.util.Arrays;
Expand All @@ -42,7 +42,7 @@

/**
*/
public class BlendedTermQueryTest extends LuceneTestCase {
public class BlendedTermQueryTest extends ElasticsearchLuceneTestCase {

public void testBooleanQuery() throws IOException {
Directory dir = newDirectory();
Expand Down

0 comments on commit 7a84b94

Please sign in to comment.