Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
szysas committed Sep 2, 2024
1 parent c275044 commit 0d403dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ class DtlsServerTransportTest {
val clientFut = DtlsTransmitter.connect(server, SslConfig.client(psk.copy(pskSecret = byteArrayOf(-128))))

// when
assertTrue(runCatching { clientFut.await() }.exceptionOrNull()?.cause is SslException)
val clientResult: Result<DtlsTransmitter> = runCatching { clientFut.await() }
assertTrue(clientResult.exceptionOrNull()?.cause is SslException, "Expected SslException, but got $clientResult")

// then
await.untilAsserted {
Expand Down

0 comments on commit 0d403dc

Please sign in to comment.