This commit fixes a test bug in the request validators random test. In particular, an assertion was not properly nested in a guard that would ensure that was at least one failure. Relates #43000
@@ -81,8 +81,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));