diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-06-10 18:30:41 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-06-10 18:30:41 -0300 |
commit | e7dbbfbffaa99bc1642ab6b01927540cabc8161f (patch) | |
tree | 87da59b8499964a18295e1d66025a88eb76f7cc6 /kamon-spray/src/test/scala/kamon/spray | |
parent | 3485a556c4f882b76646e5e10154b8a727c251b5 (diff) | |
download | Kamon-e7dbbfbffaa99bc1642ab6b01927540cabc8161f.tar.gz Kamon-e7dbbfbffaa99bc1642ab6b01927540cabc8161f.tar.bz2 Kamon-e7dbbfbffaa99bc1642ab6b01927540cabc8161f.zip |
= spray: give some more time to TestServer setup to avoid false test failures
Diffstat (limited to 'kamon-spray/src/test/scala/kamon/spray')
-rw-r--r-- | kamon-spray/src/test/scala/kamon/spray/TestServer.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kamon-spray/src/test/scala/kamon/spray/TestServer.scala b/kamon-spray/src/test/scala/kamon/spray/TestServer.scala index b448eb02..81242133 100644 --- a/kamon-spray/src/test/scala/kamon/spray/TestServer.scala +++ b/kamon-spray/src/test/scala/kamon/spray/TestServer.scala @@ -50,7 +50,9 @@ trait TestServer { def buildSHostConnectorAndServer: (ActorRef, TestProbe) = { val serverHandler = TestProbe() IO(Http).tell(Http.Bind(listener = serverHandler.ref, interface = "127.0.0.1", port = 0), serverHandler.ref) - val bound = serverHandler.expectMsgType[Bound] + val bound = within(10 seconds) { + serverHandler.expectMsgType[Bound] + } val client = httpHostConnector(bound) |