Skip to content

Commit

Permalink
fix: migrate e2e to latest ktor
Browse files Browse the repository at this point in the history
  • Loading branch information
d1snin committed Oct 20, 2024
1 parent 7a29661 commit 756fd38
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ const val TEST_SERVER_PORT = 20324

val pool = InMemoryEventPool()

fun runTestServer() = embeddedServer(Netty, environment).start()

private val environment = applicationEngineEnvironment {
module {
fun runTestServer() = embeddedServer(
Netty,
applicationEnvironment(),
configure = {
connector {
port = TEST_SERVER_PORT
}
},
module = {
install(WebSocketEvents) {
eventPool = pool
}
Expand All @@ -40,8 +45,4 @@ private val environment = applicationEngineEnvironment {
webSocketEvents()
}
}

connector {
port = TEST_SERVER_PORT
}
}
).start()

0 comments on commit 756fd38

Please sign in to comment.