How do I use `withTestApplication` on routes that ...
# ktor
d
How do I use
withTestApplication
on routes that are in
port(9090) { get { ... } }
, it seems like the tests are not resolving to any route... I'm currently using this:
Copy code
fun TestApplicationEngine.handleRequest(
	method: HttpMethod,
	port: Int = 80,
	uri: String,
	setup: TestApplicationRequest.() -> Unit = {}
): TestApplicationCall = handleRequest {
	this.uri = uri
	this.method = method
	this.addHeader(HttpHeaders.Host, "localhost:$port")
	setup()
}