From 9fbdf1ed827c880e046432e4e6bbd555bf1cf175 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Tue, 25 Feb 2025 14:45:37 +0100 Subject: [PATCH] Revert thread mode in FaultTolerantStepFactoryBeanRollbackIntegrationTests --- .../FaultTolerantStepFactoryBeanRollbackIntegrationTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanRollbackIntegrationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanRollbackIntegrationTests.java index eeaeba236..e17332dac 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanRollbackIntegrationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/test/step/FaultTolerantStepFactoryBeanRollbackIntegrationTests.java @@ -51,7 +51,6 @@ import org.springframework.test.jdbc.JdbcTestUtils; import org.springframework.transaction.PlatformTransactionManager; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Timeout.ThreadMode.SEPARATE_THREAD; /** * Tests for {@link FaultTolerantStepFactoryBean}. @@ -110,7 +109,7 @@ class FaultTolerantStepFactoryBeanRollbackIntegrationTests { } @Test - @Timeout(value = 30, threadMode = SEPARATE_THREAD) + @Timeout(value = 30) void testMultithreadedSkipInWriter() throws Throwable { ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor();