Any suggestions on how to avoid the connection ref...
# ktor
p
Any suggestions on how to avoid the connection refused exception? Or explanations on what is going on?
r
Are you entirely sure
withTestAppliction
can be used for serving requests? IIRC this facility allows one to test server code with requests constructed programmatically within test, not received from network. Try to add Netty engine and use
embeddedServer(Netty, commandLineEnvironment{))
instead of it.