Add transaction for each steps

This commit is contained in:
2020-03-18 00:52:37 +01:00
parent a99eaf3eef
commit 06684120ce

View File

@@ -51,9 +51,13 @@ class RunCucumberTest : En, KoinTest {
config.username = "test" config.username = "test"
config.password = "test" config.password = "test"
ktorContext.start() ktorContext.start()
//language=PostgreSQL
get<Connection>().sendQuery("start transaction;", listOf())
} }
After { _: Scenario -> After { _: Scenario ->
//language=PostgreSQL
get<Connection>().sendQuery("rollback;", listOf())
ktorContext.stop() ktorContext.stop()
} }
} }