=htc Http server latency multi node spec array and source routes unmixed (#21086)

This commit is contained in:
Johan Andrén 2016-08-01 18:34:30 +02:00 committed by Konrad Malawski
parent acc5223d38
commit 5dc0db2112

View file

@ -134,12 +134,12 @@ class AkkaHttpServerLatencyMultiNodeSpec extends MultiNodeSpec(AkkaHttpServerLat
path("ping") {
complete("PONG!")
} ~
path("long-response-stream" / IntNumber) { n =>
path("long-response-array" / IntNumber) { n =>
if (n == 10) complete(HttpEntity(ContentTypes.`text/plain(UTF-8)`, array_10x))
else if (n == 100) complete(HttpEntity(ContentTypes.`text/plain(UTF-8)`, array_10x))
else throw new RuntimeException(s"Not implemented for ${n}")
} ~
path("long-response-array" / IntNumber) { n =>
path("long-response-stream" / IntNumber) { n =>
if (n == 10) complete(HttpEntity(ContentTypes.`text/plain(UTF-8)`, source_100x))
else if (n == 100) complete(HttpEntity(ContentTypes.`text/plain(UTF-8)`, source_100x))
else throw new RuntimeException(s"Not implemented for ${n}")