Sandyzwin6
08/04/2020, 11:22 AMval client: HttpHandler = ApacheClient(responseBodyMode = BodyMode.Stream)
client(invoke(Method.GET, url)).use { response ->
assertEquals(Status.OK, response.status)
validateReadings(response, 1, instant(from), instant(to))
}
s4nchez
08/04/2020, 11:55 AMSandyzwin6
08/04/2020, 1:41 PMuse
on a Closeable, which is the normal pattern and AFAIK the contract of a Closeable, does not close the resource but hangs. I can simply ignore this because it is only a test and what I actually want to test works fine, but to be honest this doesn't seem right.s4nchez
08/04/2020, 1:45 PMSandyzwin6
08/04/2020, 1:46 PMs4nchez
08/04/2020, 1:47 PMSandyzwin6
08/04/2020, 1:52 PMStreamingResponseBody
So looking for the reason in that stuff will be like looking for a needle in a haystack. Why use Spring? Why Indeed... Not my choice :-(s4nchez
08/04/2020, 1:55 PM