From 8a60dacb3df5feb1f5f0aad60334d6a220a0a73c Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Mon, 24 Mar 2014 21:22:19 +0100 Subject: [PATCH] [TEST] Don't pass possibly oversized array with 0 padding to SearchRequestBuilder#setFacet(byte[]) --- .../java/org/elasticsearch/search/facet/SimpleFacetsTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/search/facet/SimpleFacetsTests.java b/src/test/java/org/elasticsearch/search/facet/SimpleFacetsTests.java index c13928bd0fb..a53fbaa4f52 100644 --- a/src/test/java/org/elasticsearch/search/facet/SimpleFacetsTests.java +++ b/src/test/java/org/elasticsearch/search/facet/SimpleFacetsTests.java @@ -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);