File tree
Expand file treeCollapse file tree1 file changed
+2
-2
lines changed google-cloud-storage/src/test/java/com/google/cloud/storage/conformance/retry
Expand file treeCollapse file tree1 file changed
+2
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -49,8 +49,8 @@ private ParallelScheduler() {
|
49 | 49 | .setNameFormat("parallel-test-runner-%02d")
|
50 | 50 | .build();
|
51 | 51 | // 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; |
54 | 54 | LOGGER.info("Using up to " + threadCount + " threads to run tests.");
|
55 | 55 | executorService = Executors.newFixedThreadPool(threadCount, threadFactory);
|
56 | 56 | childCounter = new Phaser();
|
|
You can’t perform that action at this time.
0 commit comments