diff --git a/server/src/test/java/org/elasticsearch/action/admin/indices/mapping/put/TransportPutMappingRequestValidatorsTests.java b/server/src/test/java/org/elasticsearch/action/admin/indices/mapping/put/TransportPutMappingRequestValidatorsTests.java index d65ecadd9b7..1b333ce0288 100644 --- a/server/src/test/java/org/elasticsearch/action/admin/indices/mapping/put/TransportPutMappingRequestValidatorsTests.java +++ b/server/src/test/java/org/elasticsearch/action/admin/indices/mapping/put/TransportPutMappingRequestValidatorsTests.java @@ -84,8 +84,8 @@ public class TransportPutMappingRequestValidatorsTests extends ESTestCase { assertNull(e); } else { assertNotNull(e); + assertThat(e.getSuppressed(), Matchers.arrayWithSize(numberOfFailures - 1)); } - assertThat(e.getSuppressed(), Matchers.arrayWithSize(numberOfFailures - 1)); } }