Correct test condition and add a message in case of future failures
Original commit: elastic/x-pack-elasticsearch@55729b39fa
This commit is contained in:
parent
1615be4ff3
commit
5b029ee595
|
@ -54,7 +54,7 @@ public class ShortCircuitingRenormalizerTests extends ESTestCase {
|
|||
|
||||
List<String> quantilesUsed = stateCaptor.getAllValues();
|
||||
assertFalse(quantilesUsed.isEmpty());
|
||||
assertTrue(quantilesUsed.size() < TEST_SIZE);
|
||||
assertTrue("quantilesUsed.size() is " + quantilesUsed.size(), quantilesUsed.size() <= TEST_SIZE);
|
||||
|
||||
// Last quantiles state that was actually used must be the last quantiles state we supplied
|
||||
assertEquals(Integer.toString(TEST_SIZE), quantilesUsed.get(quantilesUsed.size() - 1));
|
||||
|
|
Loading…
Reference in New Issue