dave08
03/12/2019, 1:32 PMwithTestApplication
on routes that are in port(9090) { get { ... } }
, it seems like the tests are not resolving to any route... I'm currently using this:
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()
}