Skip to content

Commit da1c11f

Browse files
committed
Change the config of flyway in test profile
1 parent 7211452 commit da1c11f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wallet/wallet-app/src/test/kotlin/co/nilin/opex/wallet/app/PostgresEnabledTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ import org.slf4j.LoggerFactory
99
import org.springframework.beans.factory.annotation.Value
1010
import org.springframework.boot.test.context.TestConfiguration
1111
import org.springframework.context.annotation.Bean
12+
import org.springframework.data.r2dbc.repository.config.EnableR2dbcRepositories
1213
import org.testcontainers.containers.PostgreSQLContainer
1314
import javax.sql.DataSource
1415

1516
@TestConfiguration
17+
@EnableR2dbcRepositories(basePackages = ["co.nilin.opex"])
1618
class PostgresEnabledTest(@Value("\${testcontainers.db.name}") private val name: String,
1719
@Value("\${testcontainers.db.username}") private val username: String,
1820
@Value("\${testcontainers.db.password}") private val password: String,

0 commit comments

Comments
 (0)