Hello, when i am using kotlintest with `coroutines...
# kotlintest
s
Hello, when i am using kotlintest with
coroutines
and
suspend functions
i have to use
delay
function after the tested function. Any idea how can i solution these? Example:
Copy code
// LOGIN TEST
Given("login form"){
    val presenter = initPresenter()

    When("login button click") {
        presenter.loginUser("nick", "password")
        delay(500)

        Then("load home") {
            verify(exactly = 1) {
                mView.loadHome()
            }
        }
    }
}


// LOGIN PRESENTER
fun loginUser(nick: String, password: String) = MainScope().launch {

}