Skip to content

Commit

Permalink
Variable thread pool size
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Kurz <[email protected]>
  • Loading branch information
scottkurz committed Jul 18, 2023
1 parent 98a1df8 commit ac7c772
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ public void testRuntime(String supportedServer, String artifactId, SpecSelection
File buildLogB = null;
File runLogA = null;
File runLogB = null;
// Workaround https:/OpenLiberty/ci.gradle/issues/841
final int threadPoolSize = supportedServer.equalsIgnoreCase("LIBERTY") ? 1 : 2;

// Workaround https:/OpenLiberty/ci.gradle/issues/841 by using a single-thread for Liberty + Gradle
int threadPoolSize = (supportedServer.equalsIgnoreCase("LIBERTY") && buildTool.equals(BuildTool.GRADLE)) ? 1 : 2;

try {
// Cleanup
Expand Down

0 comments on commit ac7c772

Please sign in to comment.