Skip to content

Commit

Permalink
test: 테스트에는 트랜잭션 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
GitJIHO committed Nov 6, 2024
1 parent 6d42562 commit f83ac16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/testcode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ jobs:
SPRING_DATASOURCE_URL: ${{ secrets.MYSQL_URL }}
SPRING_DATASOURCE_USERNAME: ${{ secrets.MYSQL_USERNAME }}
SPRING_DATASOURCE_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
SPRING_JPA_HIBERNATE_DDL_AUTO: "update"
SPRING_JPA_HIBERNATE_DDL_AUTO: "create"
JWT_SECRET: ${{ secrets.JWT_SECRET }}
run: ./gradlew test
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.transaction.annotation.Transactional;

import static org.hibernate.validator.internal.util.Contracts.assertNotNull;

@SpringBootTest
@Transactional
class SinittoApplicationTests {

@Value("${jwt.secret}")
Expand Down

0 comments on commit f83ac16

Please sign in to comment.