Skip to content

Commit 8fb6cfc

Browse files
committed
add @DirtiesContext annotation to FlywayMigrationIT for context management
1 parent 6d6be23 commit 8fb6cfc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/spring-boot/src/test/java/org/bugzkit/api/shared/integration/FlywayMigrationIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
import org.bugzkit.api.shared.config.DatabaseContainers;
44
import org.junit.jupiter.api.Test;
55
import org.springframework.boot.test.context.SpringBootTest;
6+
import org.springframework.test.annotation.DirtiesContext;
67
import org.springframework.test.context.ActiveProfiles;
78

9+
@DirtiesContext
810
@ActiveProfiles("test")
911
@SpringBootTest
1012
class FlywayMigrationIT extends DatabaseContainers {

0 commit comments

Comments
 (0)