Correct test condition and add a message in case of future failures

Original commit: elastic/x-pack-elasticsearch@55729b39fa
This commit is contained in:
David Roberts 2016-12-20 11:22:03 +00:00
parent 1615be4ff3
commit 5b029ee595
1 changed files with 1 additions and 1 deletions

View File

@ -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));