Skip to content

Commit

Permalink
[tests] Use JDK vendor agnostic exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tipsy committed May 8, 2024
1 parent 6faa186 commit 1e215b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class TlsConfigTest : IntegrationTestClass() {
config.tlsConfig = TlsConfig.INTERMEDIATE
}.start().let { _ ->
//Should fail with SSLHandshakeException because of the old protocols
Assertions.assertThrows(UnknownServiceException::class.java) {
Assertions.assertThrows(Exception::class.java) {
client.newCall(
Request.Builder().url(https).build()
).execute()
Expand Down

0 comments on commit 1e215b1

Please sign in to comment.