https://kotlinlang.org logo
#kotest
Title
# kotest
p

Pitel

02/08/2022, 1:33 PM
I'm trying to use kotest with coroutines and robolectric, so I have this simple test:
Copy code
@RobolectricTest
class RoboTest : StringSpec( {
    "test" {
        println(1111111)
        delay(500)
        println(22222)
        1 + 1 shouldBe 2
        println(3333)
    }
})
But it never finishes! It prints 11111 and then just hangs. Any idea why?
s

sam

02/08/2022, 1:46 PM
and it works if you take the annotation off ?
p

Pitel

02/08/2022, 2:16 PM
yes
then it's robo's issue, right?
s

sam

02/08/2022, 2:23 PM
I would imagine so yes
n

nelson ramirez

02/08/2022, 5:28 PM
@Pitel would you be able to share your configuration? I'm trying to get my own robolectric setup going and I'm having a bit of trouble.
25 Views