Skip to content

Commit

Permalink
Fix engine's suite socket connect timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Mashkov committed Oct 19, 2018
1 parent 4818903 commit e1321a6
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -234,9 +234,10 @@ abstract class EngineTestBase<TEngine : ApplicationEngine, TConfiguration : Appl
} }


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


block(socket) block(socket)
} }
Expand Down

0 comments on commit e1321a6

Please sign in to comment.