Saiedmomen
01/26/2019, 10:08 AMMockEngine
?Alexander
01/27/2019, 12:00 PMMockEngine {
throw java.net.ConnectException()
}
There is a drawback that ktor client doesn't wrap exceptions so you should write its own tests for all engines that you use.Saiedmomen
01/27/2019, 2:30 PMGrégory Lureau
03/14/2022, 2:55 PMMockEngine {
throw java.net.ConnectException()
}
Given MockEngine doesn't allow specifying the coroutine dispatcher, is there an approach where I can simulate this case for all the platforms in an elegant manner?Saiedmomen
03/21/2022, 12:35 PMexpect
error type and then using actual typealias
to specify each platforms exceptions work?Grégory Lureau
03/21/2022, 1:27 PM