enclosing the verify block in `runBlocking` doesn'...
# announcements
s
enclosing the verify block in
runBlocking
doesn't work
d
Switch
verify
and
runBlocking
.
runBlocking
should wrap the suspending call to bridge it to non-suspending code (to block).
Copy code
verify(exactly = 2) {
    runBlocking {
        movieFetcher.fetchMovies()
    }
}
👍 1
s
yeah that works. Thank you!
there is also a coVerify that does this in one step