Skip to content

Commit

Permalink
Speedup test executions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Feb 9, 2022
1 parent c7c39f6 commit bc320ab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,11 @@ private static void doServerStart(Vertx vertx, HttpBuildTimeConfig httpBuildTime
}

int eventLoopCount = eventLoops.get();
int ioThreads;
final int ioThreads;
if (httpConfiguration.ioThreads.isPresent()) {
ioThreads = Math.min(httpConfiguration.ioThreads.getAsInt(), eventLoopCount);
} else if (launchMode.isDevOrTest()) {
ioThreads = Math.min(2, eventLoopCount); //Don't start ~100 threads to run a couple unit tests
} else {
ioThreads = eventLoopCount;
}
Expand Down

0 comments on commit bc320ab

Please sign in to comment.