diff --git a/src/test/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java b/src/test/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java index 425df88abe7..f655a5e3086 100644 --- a/src/test/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java +++ b/src/test/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java @@ -70,7 +70,6 @@ public class ElasticsearchAssertions { } public static void assertHitCount(CountResponse countResponse, long expectedHitCount) { - assertThat(countResponse.getCount(), is(expectedHitCount)); if (countResponse.getCount() != expectedHitCount) { String msg = "Count is " + countResponse.getCount() + " but " + expectedHitCount + " was expected. " + countResponse.getFailedShards() + " shard failures:";