[ML] Choose seconds to fix intermittent DatafeeedConfigTest failure

This commit is contained in:
David Kyle 2018-08-16 10:48:56 +01:00
parent 996ed73d73
commit 7f6802cb51
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class DatafeedConfigTests extends AbstractSerializingTestCase<DatafeedCon
if (aggHistogramInterval == null) {
builder.setFrequency(TimeValue.timeValueSeconds(randomIntBetween(1, 1_000_000)));
} else {
builder.setFrequency(TimeValue.timeValueMillis(randomIntBetween(1, 5) * aggHistogramInterval));
builder.setFrequency(TimeValue.timeValueSeconds(randomIntBetween(1, 5) * aggHistogramInterval));
}
}
if (randomBoolean()) {