I have a odd behaviour in the `iosTest` tests. I w...
# multiplatform
c
I have a odd behaviour in the
iosTest
tests. I want to verify our certificate pinning is working fine, which requires a HTTPS request being made. Any request I make results in
Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid."
even with a complete vanilla setup:
Copy code
@Test
fun WHEN_certificate_pin_is_correct_THEN_can_connect() = runBlocking {
    val client = HttpClient(Darwin)
    val status = client.get("<https://google.com>").status.value
    assertEquals(expected = 200, actual = status)
}
Did anyone try something like this or had similar issues before?