Skip to content

Commit ef84778

Browse files
committed
Revert "Fix scaling thread pool test bug"
This reverts commit 037014b. Relates #20874
1 parent 037014b commit ef84778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/java/org/elasticsearch/threadpool/ScalingThreadPoolTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void testScalingThreadPoolConfiguration() throws InterruptedException {
5454
maxBasedOnNumberOfProcessors = expectedSize(threadPoolName, processors);
5555
builder.put("processors", processors);
5656
} else {
57-
maxBasedOnNumberOfProcessors = expectedSize(threadPoolName, Runtime.getRuntime().availableProcessors());
57+
maxBasedOnNumberOfProcessors = expectedSize(threadPoolName, Math.min(32, Runtime.getRuntime().availableProcessors()));
5858
}
5959

6060
final int expectedMax;

0 commit comments

Comments
 (0)