From 7a082cea4f7fa22365c60e54a1007400697b9d4b Mon Sep 17 00:00:00 2001 From: Britta Weber Date: Sun, 31 May 2015 12:45:19 +0200 Subject: [PATCH] remove check for failure, might rarely not fail at all --- .../elasticsearch/search/SearchWithRejectionsTests.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/test/java/org/elasticsearch/search/SearchWithRejectionsTests.java b/src/test/java/org/elasticsearch/search/SearchWithRejectionsTests.java index 3e5bce138d0..322679a584e 100644 --- a/src/test/java/org/elasticsearch/search/SearchWithRejectionsTests.java +++ b/src/test/java/org/elasticsearch/search/SearchWithRejectionsTests.java @@ -70,18 +70,12 @@ public class SearchWithRejectionsTests extends ElasticsearchIntegrationTest { .setSearchType(searchType) .execute(); } - int failures = 0; for (int i = 0; i < numSearches; i++) { try { - SearchResponse searchResponse = responses[i].get(); - if (searchResponse.getFailedShards() > 0) { - failures++; - } + responses[i].get(); } catch (Throwable t) { - failures++; } } - assertThat(failures, greaterThanOrEqualTo(1)); awaitBusy(new Predicate() { @Override public boolean apply(Object input) {