mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-16 09:54:55 +00:00
[TEST] Don't pass possibly oversized array with 0 padding to SearchRequestBuilder#setFacet(byte[])
This commit is contained in:
parent
76e595278a
commit
8a60dacb3d
@ -65,7 +65,6 @@ import static org.hamcrest.Matchers.*;
|
||||
*
|
||||
*/
|
||||
public class SimpleFacetsTests extends ElasticsearchIntegrationTest {
|
||||
|
||||
private int numRuns = -1;
|
||||
|
||||
protected int numberOfRuns() {
|
||||
@ -87,7 +86,7 @@ public class SimpleFacetsTests extends ElasticsearchIntegrationTest {
|
||||
SearchResponse searchResponse = client().prepareSearch()
|
||||
.setSearchType(SearchType.COUNT)
|
||||
.setFacets(new BytesArray(
|
||||
"{\"facet1\":{\"filter\":{ }}}").array())
|
||||
"{\"facet1\":{\"filter\":{ }}}"))
|
||||
.get();
|
||||
|
||||
assertHitCount(searchResponse, 1l);
|
||||
|
Loading…
x
Reference in New Issue
Block a user