Test min pool size of zero for scaling executor

This commit expands the configuration test for scaling executors to
include the case where the min pool size is set to zero.
This commit is contained in:
Jason Tedor 2016-04-24 09:59:15 -04:00
parent e6a06b272e
commit fd679a7021
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class ScalingThreadPoolTests extends ESThreadPoolTestCase {
final int min;
if (randomBoolean()) {
min = randomIntBetween(1, 8);
min = randomIntBetween(0, 8);
builder.put("threadpool." + threadPoolName + ".min", min);
} else {
min = "generic".equals(threadPoolName) ? 4 : 1; // the defaults