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 #43000
This commit is contained in:
Jason Tedor 2019-06-07 17:46:12 -04:00
parent 553c73b22d
commit b580677412
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 1 additions and 1 deletions

View File

@ -84,8 +84,8 @@ public class TransportPutMappingRequestValidatorsTests extends ESTestCase {
assertNull(e);
} else {
assertNotNull(e);
}
assertThat(e.getSuppressed(), Matchers.arrayWithSize(numberOfFailures - 1));
}
}
}