BJ-917: Fix tests

This commit is contained in:
a.romanov 2020-05-28 10:51:27 +03:00 committed by a.romanov
parent beb3152943
commit 7f47ee33a4
2 changed files with 9 additions and 1 deletions

View File

@ -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();
}
}

View File

@ -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);