Merge pull request #20101 from ktoso/wip-fix-small-timeout-ktoso
htc #19693 fix too small timeout in test
This commit is contained in:
commit
2cf60d6d8a
1 changed files with 1 additions and 1 deletions
|
|
@ -811,7 +811,7 @@ class HttpServerSpec extends AkkaSpec(
|
||||||
(System.nanoTime() - mark) should be < (40 * 1000000L)
|
(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")
|
send("GET / HTTP/1.1\r\nHost: example.com\r\n\r\n")
|
||||||
val timeoutResponse = HttpResponse(StatusCodes.InternalServerError, entity = "OOPS!")
|
val timeoutResponse = HttpResponse(StatusCodes.InternalServerError, entity = "OOPS!")
|
||||||
expectRequest().header[`Timeout-Access`].foreach(_.timeoutAccess.updateHandler(_ ⇒ timeoutResponse))
|
expectRequest().header[`Timeout-Access`].foreach(_.timeoutAccess.updateHandler(_ ⇒ timeoutResponse))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue