[TEST] Add explanation for custom random time value in ChunkingConfigTests

Original commit: elastic/x-pack-elasticsearch@9e03fb833f
This commit is contained in:
Dimitrios Athanasiou 2017-05-11 16:26:00 +01:00
parent 2e1ac420d7
commit 9ccf617a95
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ public class ChunkingConfigTests extends AbstractSerializingTestCase<ChunkingCon
ChunkingConfig.Mode mode = randomFrom(ChunkingConfig.Mode.values());
TimeValue timeSpan = null;
if (mode == ChunkingConfig.Mode.MANUAL) {
// time span is required to be at least 1 millis, so we use a custom method to generate a time value here
timeSpan = randomPositiveSecondsMinutesHours();
}
return new ChunkingConfig(mode, timeSpan);