[TEST] Don't pass possibly oversized array with 0 padding to SearchRequestBuilder#setFacet(byte[])

This commit is contained in:
Simon Willnauer 2014-03-24 21:22:19 +01:00
parent 76e595278a
commit 8a60dacb3d
1 changed files with 1 additions and 2 deletions

View File

@ -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);