[TEST] Fix typo in DateHistogramTests that fails the test since it expects dates to be rounded by day.

This commit is contained in:
Adrien Grand 2014-04-24 23:23:50 +02:00
parent f109802960
commit f1916d16dc
1 changed files with 1 additions and 1 deletions

View File

@ -1134,7 +1134,7 @@ public class DateHistogramTests extends ElasticsearchIntegrationTest {
if (frequently()) {
boundsMinKey = baseKey.minusDays(addedBucketsLeft * interval);
} else {
boundsMinKey = baseKey.plus(addedBucketsLeft * interval);
boundsMinKey = baseKey.plusDays(addedBucketsLeft * interval);
addedBucketsLeft = 0;
}
DateTime boundsMin = boundsMinKey.plusDays(randomIntBetween(0, interval - 1));