Skip to content

Commit 71104fe

Browse files
committed
Disable Flyway for in-memory integration tests
The eventuate-tram-spring-flyway library is designed for PostgreSQL and fails when running with H2 in-memory database because the H2 migration templates don't exist. Co-authored by Claude Code
1 parent bcaaebe commit 71104fe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ftgo-consumer-service/consumer-service-main/src/integrationTest/java/net/chrisrichardson/ftgo/consumerservice/ConsumerServiceIntegrationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
import static org.junit.jupiter.api.Assertions.assertNotNull;
2727

2828
@SpringBootTest(classes = ConsumerServiceIntegrationTest.TestConfiguration.class,
29-
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
29+
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
30+
properties = "spring.flyway.enabled=false")
3031
class ConsumerServiceIntegrationTest {
3132

3233
@Value("${local.server.port}")

ftgo-kitchen-service/kitchen-service-main/src/integrationTest/java/net/chrisrichardson/ftgo/kitchenservice/domain/KitchenServiceInMemoryIntegrationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
import java.util.Map;
2929

3030
@SpringBootTest(classes = KitchenServiceInMemoryIntegrationTest.TestConfiguration.class,
31-
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
31+
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
32+
properties = "spring.flyway.enabled=false")
3233
class KitchenServiceInMemoryIntegrationTest {
3334

3435
private Logger logger = LoggerFactory.getLogger(getClass());

0 commit comments

Comments
 (0)