Skip to content

Commit

Permalink
[fix] 테스트 이후 데이터를 롤백시키기 위해 @transactional 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyeon-Uk committed Aug 22, 2024
1 parent 7bb05e5 commit 237429d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.transaction.annotation.Transactional;

import camp.woowak.lab.cart.domain.Cart;
import camp.woowak.lab.cart.repository.CartRepository;
Expand All @@ -28,6 +29,7 @@
import camp.woowak.lab.web.dto.response.CartResponse;

@SpringBootTest
@Transactional
class RedisCartDaoTest extends StoreDummiesFixture {
private final CartRepository cartRepository;
@Autowired
Expand Down

0 comments on commit 237429d

Please sign in to comment.