From 6d4401d2002f60788efb401c2506674f481a2d5a Mon Sep 17 00:00:00 2001 From: Konrad Malawski Date: Mon, 21 Mar 2016 14:45:04 +0100 Subject: [PATCH] htc #19693 fix too small timeout in test --- .../scala/akka/http/impl/engine/server/HttpServerSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-http-core/src/test/scala/akka/http/impl/engine/server/HttpServerSpec.scala b/akka-http-core/src/test/scala/akka/http/impl/engine/server/HttpServerSpec.scala index dbb3adc141..8444112ee3 100644 --- a/akka-http-core/src/test/scala/akka/http/impl/engine/server/HttpServerSpec.scala +++ b/akka-http-core/src/test/scala/akka/http/impl/engine/server/HttpServerSpec.scala @@ -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))