Add transaction for each steps
This commit is contained in:
@@ -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