Skip to content

Commit

Permalink
Fix compile errors after backport of #32403
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Büscher committed Aug 10, 2018
1 parent 10f5ffb commit 486c507
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ protected Collection<Class<? extends Plugin>> getPlugins() {
}

@Override
protected Settings indexSettings() {
protected Settings createTestIndexSettings() {
return Settings.builder()
.put(super.indexSettings())
.put(super.createTestIndexSettings())
.put("index.version.created", Version.V_5_6_0) // legacy needs multi type
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public void testRequiredParameters() {
public void testFromJsonNoDocumentType() throws IOException {
QueryShardContext queryShardContext = createShardContext();
QueryBuilder queryBuilder = parseQuery("{\"percolate\" : { \"document\": {}, \"field\":\"" + queryField + "\"}}");
if (indexVersionCreated.before(Version.V_6_0_0_alpha1)) {
if (indexSettings().getIndexVersionCreated().before(Version.V_6_0_0_alpha1)) {
IllegalArgumentException e = expectThrows(IllegalArgumentException.class,
() -> queryBuilder.toQuery(queryShardContext));
assertThat(e.getMessage(), equalTo("[percolate] query is missing required [document_type] parameter"));
Expand Down

0 comments on commit 486c507

Please sign in to comment.