Join Slack
Hi in the latest Kotest assertions, it deprecated `eventually` from the currency module, and use `e...
# kotest
h
hantsy
09/08/2023, 1:11 PM
Hi in the latest Kotest assertions, it deprecated
eventually
from the currency module, and use
eventually
in nonedetermistic utils instead
Non-deterministic Testing
, but my codes is using Kolin coroutines, the
suspend
fun does not work in the nonedetermistic
eventually
body. Any idea here?
s
sam
09/11/2023, 9:00 PM
You can definitely use suspendable functions inside eventually, eg this test:
https://github.com/kotest/kotest/blob/master/kotest-assertions/kotest-assertions-c[…]m/sksamuel/kotest/assertions/nondeterministic/EventuallyTest.kt
sam
09/11/2023, 9:00 PM
Are you importing the right version ?
sam
09/11/2023, 10:00 PM
I've improved the docs
https://kotest.io/docs/next/assertions/eventually.html
h
hantsy
10/06/2023, 2:27 AM
works, thanks.
197
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by