mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
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:
parent
553c73b22d
commit
b580677412
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user