fix(test): H2 수명과 컨텍스트 격리를 정리해 테스트 자원 누적을 줄인다

This commit is contained in:
2026-11-19 14:20:21 +09:00
parent 6e14c38915
commit 1c270048a1
36 changed files with 192 additions and 39 deletions
@@ -19,7 +19,7 @@ import org.springframework.test.context.ContextConfiguration
"deployment.artifact-version=1.2.3-20260914",
"deployment.config-commit=1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d",
"spring.datasource.url=jdbc:h2:mem:deployment-endpoint-injected-integration;" +
"MODE=MySQL;DATABASE_TO_UPPER=false;NON_KEYWORDS=VALUE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"
"MODE=MySQL;DATABASE_TO_UPPER=false;NON_KEYWORDS=VALUE;DB_CLOSE_DELAY=0;DB_CLOSE_ON_EXIT=FALSE"
]
)
@ContextConfiguration(initializers = [EmbeddedRedisInitializer::class])
@@ -20,7 +20,7 @@ import org.springframework.test.context.ContextConfiguration
properties = [
"management.server.port=0",
"spring.datasource.url=jdbc:h2:mem:deployment-endpoint-integration;" +
"MODE=MySQL;DATABASE_TO_UPPER=false;NON_KEYWORDS=VALUE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"
"MODE=MySQL;DATABASE_TO_UPPER=false;NON_KEYWORDS=VALUE;DB_CLOSE_DELAY=0;DB_CLOSE_ON_EXIT=FALSE"
]
)
@ContextConfiguration(initializers = [EmbeddedRedisInitializer::class])