Skip to content
Permalink
Browse files

Fix engine's suite socket connect timeout

  • Loading branch information...
cy6erGn0m committed Oct 18, 2018
1 parent 4818903 commit e1321a6925c85272eb36b9f2e122706436a332a8
@@ -234,9 +234,10 @@ abstract class EngineTestBase<TEngine : ApplicationEngine, TConfiguration : Appl
}

protected inline fun socket(block: Socket.() -> Unit) {
Socket("localhost", port).use { socket ->
Socket().use { socket ->
socket.tcpNoDelay = true
socket.soTimeout = socketReadTimeout
socket.connect(InetSocketAddress("localhost", port))

block(socket)
}

0 comments on commit e1321a6

Please sign in to comment.
You can’t perform that action at this time.