succeedWhen

fun succeedWhen(condition: () -> Boolean)(source)

Set the condition under which the test will succeed. Will be checked periodically.