diff --git a/src/test/java/com/rbkmoney/threeds/server/storage/config/TestConfig.java b/src/test/java/com/rbkmoney/threeds/server/storage/config/TestConfig.java index 8aaa121..fb601fc 100644 --- a/src/test/java/com/rbkmoney/threeds/server/storage/config/TestConfig.java +++ b/src/test/java/com/rbkmoney/threeds/server/storage/config/TestConfig.java @@ -3,6 +3,8 @@ package com.rbkmoney.threeds.server.storage.config; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Primary; +import org.springframework.core.task.SyncTaskExecutor; +import org.springframework.core.task.TaskExecutor; import org.springframework.web.client.RestTemplate; @TestConfiguration @@ -13,4 +15,10 @@ public class TestConfig { public RestTemplate getRestTemplate() { return new RestTemplate(); } + + @Bean + @Primary + public TaskExecutor taskExecutor() { + return new SyncTaskExecutor(); + } } diff --git a/src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceIT.java b/src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceTest.java similarity index 98% rename from src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceIT.java rename to src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceTest.java index 6216cd3..6799176 100644 --- a/src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceIT.java +++ b/src/test/java/com/rbkmoney/threeds/server/storage/service/PreparationFlowServiceTest.java @@ -29,7 +29,7 @@ import static org.junit.Assert.assertTrue; @RunWith(SpringRunner.class) @TestPropertySource(properties = "client.three-ds-server.url=http://127.0.0.1:8089/") -public class PreparationFlowServiceIT extends PostgresRepositoryTest { +public class PreparationFlowServiceTest extends PostgresRepositoryTest { @ClassRule public static WireMockRule wireMockRule = new WireMockRule(8089);