Add transaction for each steps
This commit is contained in:
1 parent
a99eaf3eef
commit
06684120ce
1 file changed
+4
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user