hi - does anyone know how to use virtual timer wit...
# kotest
a
hi - does anyone know how to use virtual timer with kotest - in case I want to use the
shouldThrow
like this
Copy code
shouldThrow<Exception> {
                        client.callMyEndpoint(request).awaitSingle()
                    }
s
Can you explain what you mean by virtual timer
a
Copy code
StepVerifier
                        .withVirtualTime
project reactor for example. But specifically I would like to test endpoint that has a retry and it will take 4 sec to fail. I don’t want my test to wait 4 seconds. Normally test with project reactor virtual timer and it pretends to pass the time faster.
Thanks @sam
s
I don't think this is a kotest related thing? You just need to do whatever you do in junit right ?