Skip to content

Commit

Permalink
[CI] Auto commit changes from spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticsearchmachine committed Dec 26, 2024
1 parent f904b39 commit eba857d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Collections;
import java.util.List;

import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertResponse;
import static org.elasticsearch.xcontent.XContentFactory.jsonBuilder;
import static org.hamcrest.Matchers.equalTo;

Expand All @@ -44,11 +43,13 @@ public void testResultSizeLimit() throws Exception {
{ "query": {"match_all": {}}, "size" : "{{my_size}}" }""";
SearchRequest searchRequest = new SearchRequest();
searchRequest.indices("test");
var e = expectThrows(ElasticsearchParseException.class, () ->
new SearchTemplateRequestBuilder(client()).setRequest(searchRequest)
var e = expectThrows(
ElasticsearchParseException.class,
() -> new SearchTemplateRequestBuilder(client()).setRequest(searchRequest)
.setScript(query)
.setScriptType(ScriptType.INLINE)
.setScriptParams(Collections.singletonMap("my_size", 1)).get()
.setScriptParams(Collections.singletonMap("my_size", 1))
.get()
);
assertThat(e.getMessage(), equalTo("Mustache script result size limit exceeded"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.function.Predicate;
import java.util.function.Supplier;
Expand Down

0 comments on commit eba857d

Please sign in to comment.