Hey Assuming we need to advance coroutine time usi...
# test
i
Hey Assuming we need to advance coroutine time using
advanceUntilIdle()
method. I wonder where this method belongs in BDD (
When
or
Then
block?)
Copy code
@Test
    fun `test something`() = runTest {
        // given
        setup code

        // when
        subject.init()
        advanceUntilIdle()

        // then
        verify something
    }
or
Copy code
@Test
    fun `test something`() = runTest {
        // given
        setup code

        // when
        subject.init()

        // then
        advanceUntilIdle()
        verify something
    }