Fix put mapping request validators random test
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
@@ -84,8 +84,8 @@ public class TransportPutMappingRequestValidatorsTests extends ESTestCase {
assertNull(e);
} else {
assertNotNull(e);
- }
assertThat(e.getSuppressed(), Matchers.arrayWithSize(numberOfFailures - 1));
}
+ }
}
