htc #19693 fix too small timeout in test

This commit is contained in:
Konrad Malawski 2016-03-21 14:45:04 +01:00
parent ed6acd63ec
commit 6d4401d200

View file

@ -811,7 +811,7 @@ class HttpServerSpec extends AkkaSpec(
(System.nanoTime() - mark) should be < (40 * 1000000L)
}
"have a programmatically set timeout handler" in new RequestTimeoutTestSetup(10.millis) {
"have a programmatically set timeout handler" in new RequestTimeoutTestSetup(400.millis) {
send("GET / HTTP/1.1\r\nHost: example.com\r\n\r\n")
val timeoutResponse = HttpResponse(StatusCodes.InternalServerError, entity = "OOPS!")
expectRequest().header[`Timeout-Access`].foreach(_.timeoutAccess.updateHandler(_ timeoutResponse))