Skip to content

Commit e142fc9

Browse files
author
Christoph Büscher
committed
Added path.home setting to BaseQueryTestCase setup, this seems to be enforeced now
1 parent 229c372 commit e142fc9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/test/java/org/elasticsearch/index/query/BaseQueryTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public abstract class BaseQueryTestCase<QB extends BaseQueryBuilder & Streamable
7373
public static void init() throws IOException {
7474
Settings settings = ImmutableSettings.settingsBuilder()
7575
.put("name", BaseQueryTestCase.class.toString())
76+
.put("path.home", createTempDir())
7677
.put(IndexMetaData.SETTING_VERSION_CREATED, Version.CURRENT)
7778
.build();
7879

src/test/java/org/elasticsearch/index/query/MatchAllQueryBuilderTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
package org.elasticsearch.index.query;
2121

22+
import com.carrotsearch.randomizedtesting.annotations.Repeat;
23+
2224
import org.apache.lucene.search.MatchAllDocsQuery;
2325
import org.apache.lucene.search.Query;
2426

@@ -27,6 +29,7 @@
2729
import static org.hamcrest.Matchers.instanceOf;
2830
import static org.hamcrest.Matchers.is;
2931

32+
@Repeat(iterations=20)
3033
public class MatchAllQueryBuilderTest extends BaseQueryTestCase<MatchAllQueryBuilder> {
3134

3235
@Override

0 commit comments

Comments
 (0)