mirror of
https://github.com/valitydev/three-ds-server-storage.git
synced 2024-11-06 00:15:16 +00:00
BJ-917: Fix tests
This commit is contained in:
parent
beb3152943
commit
7f47ee33a4
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
Loading…
Reference in New Issue
Block a user