Coroutines don't advance when testing Ktor with Jetpack Compose
I'm trying to test my code that uses Ktor:
WeatherRepository:
class WeatherRepository(
engine: HttpClientEngine,
private val locationClient: LocationClient
) {
...
suspend fun getCurrentWeather(): CurrentWeather {
val coordinates = locationClient.getCoordinates()
val requestUrl = "forecast?current_weather=true&latitude=${coordinates.lat}&longitude=${coordinates.lon}"
val response = httpClient.get(requestUrl)
println(response)
....
}
HomeRepository:
class HomeRepository(...