Skip to content

Commit 602f7ab

Browse files
veloclaude
andcommitted
Set forkCount=1 in CI profile for single-threaded test execution
Add forkCount=1 to both surefire and failsafe plugins in the CI profile to ensure tests run in single-threaded mode while maintaining toolchain compatibility by not setting reuseForks=false. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Marvin Froeder <velo.br@gmail.com>
1 parent d216241 commit 602f7ab

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,13 +1067,15 @@
10671067
<artifactId>maven-surefire-plugin</artifactId>
10681068
<configuration>
10691069
<redirectTestOutputToFile>false</redirectTestOutputToFile>
1070+
<forkCount>1</forkCount>
10701071
</configuration>
10711072
</plugin>
10721073
<plugin>
10731074
<groupId>org.apache.maven.plugins</groupId>
10741075
<artifactId>maven-failsafe-plugin</artifactId>
10751076
<configuration>
10761077
<redirectTestOutputToFile>false</redirectTestOutputToFile>
1078+
<forkCount>1</forkCount>
10771079
</configuration>
10781080
</plugin>
10791081
</plugins>

vertx/feign-vertx/src/test/java/feign/vertx/AbstractClientReconnectTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import io.vertx.core.Vertx;
2828
import io.vertx.junit5.VertxTestContext;
2929
import java.util.List;
30+
import java.util.concurrent.TimeUnit;
3031
import java.util.stream.Collectors;
3132
import java.util.stream.IntStream;
3233
import org.junit.jupiter.api.*;
@@ -50,8 +51,9 @@ static void setupMockServer() {
5051

5152
@Test
5253
@DisplayName("All requests should be answered")
53-
void allRequestsShouldBeAnswered(VertxTestContext testContext) {
54+
void allRequestsShouldBeAnswered(VertxTestContext testContext) throws InterruptedException {
5455
sendRequests(10).compose(responses -> assertAllRequestsAnswered(responses, testContext));
56+
testContext.awaitCompletion(1, TimeUnit.MINUTES);
5557
}
5658

5759
@Nested

0 commit comments

Comments
 (0)