remove check for failure, might rarely not fail at all

This commit is contained in:
Britta Weber 2015-05-31 12:45:19 +02:00
parent b5ad1c257e
commit 7a082cea4f
1 changed files with 1 additions and 7 deletions

View File

@ -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<Object>() {
@Override
public boolean apply(Object input) {