Created
June 7, 2019 09:44
-
-
Save FRosner/d293c6efaf4e8ad1d2529fe92645da6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun testAfterMigration(postgresContainer: PostgresContainer, testFunction: suspend (PgClient) -> Unit) { | |
migrate(postgresContainer.connectionDetails) | |
val pgClient = createPgClient(postgresContainer.connectionDetails) | |
runBlocking { | |
testFunction(pgClient) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment