matthew graf
07/14/2020, 10:30 PMrunBlocking
)
Then("event store should be empty") {
runBlocking {
// findAll is a suspending function
eventStore.findAll().shouldBeRight { it.shouldBeEmpty() }
}
}
Its not the biggest deal, although it does make some tests a bit more verbose. I see some talk about this in the channel history but wasn’t sure if this was still the cleanest way to do itraniejade
07/17/2020, 2:31 PM2.1
- which will add support for coroutines - you can run suspending functions within `test`s and fixtures.