[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…
Reference in New Issue