Skip to content

Commit

Permalink
[fix] 테스트시 in_memory 버전의 CartRepository를 사용하게 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-KoKo committed Aug 29, 2024
1 parent 7fba4a7 commit 12367ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.TestPropertySources;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

Expand Down Expand Up @@ -46,6 +48,10 @@
import camp.woowak.lab.web.dao.store.StoreDummiesFixture;

@SpringBootTest
@TestPropertySources({
@TestPropertySource(properties = "cart.dao=redis"),
@TestPropertySource(properties = "cart.repository=redis")
})
@Disabled
public class CartServiceConcurrencyTest extends StoreDummiesFixture {
private final Logger log = LoggerFactory.getLogger(CartServiceConcurrencyTest.class);
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spring:

cart:
dao: redis
repository: redis
repository: in_memory

management:
endpoints:
Expand Down

0 comments on commit 12367ad

Please sign in to comment.