Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
szysas committed Aug 11, 2023
1 parent 125e501 commit 4e87117
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import org.opencoap.ssl.util.seconds
import java.net.InetSocketAddress
import java.nio.channels.ClosedChannelException
import java.nio.charset.Charset
import java.util.concurrent.ExecutionException
import kotlin.random.Random

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
Expand Down Expand Up @@ -141,7 +142,7 @@ class NettyTest {
val client = NettyTransportAdapter.connect(clientConfig2, srvAddress).mapToString()

// then
assertThatThrownBy { client.send("hi").await() }.hasCauseInstanceOf(ClosedChannelException::class.java)
assertThatThrownBy { client.send("hi").await() }.isInstanceOf(ExecutionException::class.java).hasCauseInstanceOf(ClosedChannelException::class.java)
assertThatThrownBy { client.send("hi").await() }.hasCauseInstanceOf(ClosedChannelException::class.java)

client.close()
Expand Down

0 comments on commit 4e87117

Please sign in to comment.