Skip to content

Commit c642802

Browse files
committed
test(transport): Allow platform TLS distrust failures
New JDK trust stores reject the compromised eMudhra certificate during the TLS handshake before the SDK-specific check runs. Assert the shared IOException contract so the transport test remains valid across JDK trust store versions.
1 parent 5d944a6 commit c642802

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sentry/src/test/java/io/sentry/transport/DistrustedCertificatesTest.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class DistrustedCertificatesTest {
9797
false,
9898
)
9999

100-
assertFailsWith<SSLPeerUnverifiedException> { send(trusting(emSignRoot)) }
100+
assertFailsWith<IOException> { send(trusting(emSignRoot)) }
101101

102102
assertThat(server.requestCount).isEqualTo(0)
103103
}
@@ -107,7 +107,7 @@ class DistrustedCertificatesTest {
107107
// Like Android, which completes the chain from intermediates it cached on earlier connections.
108108
server.useHttps(serverCertificates(leafIssuedBy(distrustedCa)), false)
109109

110-
assertFailsWith<SSLPeerUnverifiedException> { send(trusting(distrustedCa.certificate)) }
110+
assertFailsWith<IOException> { send(trusting(distrustedCa.certificate)) }
111111

112112
assertThat(server.requestCount).isEqualTo(0)
113113
}

0 commit comments

Comments
 (0)