[TEST] Add explanation for custom random time value in ChunkingConfigTests
Original commit: elastic/x-pack-elasticsearch@9e03fb833f
This commit is contained in:
parent
2e1ac420d7
commit
9ccf617a95
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue