It is strange. I'm using `Fuel` for network calls....
# kovenant
y
It is strange. I'm using
Fuel
for network calls. if I run the code under main (not test), it works as expected. However, if I run it as
@test
it doesn't work:
Copy code
val api = ApiControllerImpl(RequestsControllerImpl(), DataParserImpl)
    api.getSchools() success {
        println("works")
        it?.forEach { println(it) } ?: throw Exception("should not fail")
    } fail {
        it.printStackTrace()
        throw Exception("should not fail")
    }
to make it work as a test I need to run both
Kovenant
and
Fuel
in blocking mode.