File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ private ParallelScheduler() {
4949
.setNameFormat("parallel-test-runner-%02d")
5050
.build();
5151
// attempt to leave some space for the testbench server running alongside these tests
52-
int coreCount = Runtime.getRuntime().availableProcessors() - 2;
53-
int threadCount = Math.max(2, coreCount);
52+
int coreCount = Runtime.getRuntime().availableProcessors();
53+
int threadCount = Math.max(1, coreCount) * 2;
5454
LOGGER.info("Using up to " + threadCount + " threads to run tests.");
5555
executorService = Executors.newFixedThreadPool(threadCount, threadFactory);
5656
childCounter = new Phaser();

0 commit comments

Comments
 (0)