diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2013-12-18 20:41:20 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2013-12-18 20:41:20 -0300 |
commit | 705f76aa41ebdf9384530e2e0d850a0ef703a5e6 (patch) | |
tree | d6026b84ca0f59823f5ead10291655b0ec7bf2a5 /kamon-spray/src/test/scala/kamon/spray/ClientRequestTracingSpec.scala | |
parent | 1d9305dc7a8ad2d6457b5ebe1635eb4838cf13a0 (diff) | |
download | Kamon-705f76aa41ebdf9384530e2e0d850a0ef703a5e6.tar.gz Kamon-705f76aa41ebdf9384530e2e0d850a0ef703a5e6.tar.bz2 Kamon-705f76aa41ebdf9384530e2e0d850a0ef703a5e6.zip |
more reformatted code
Diffstat (limited to 'kamon-spray/src/test/scala/kamon/spray/ClientRequestTracingSpec.scala')
-rw-r--r-- | kamon-spray/src/test/scala/kamon/spray/ClientRequestTracingSpec.scala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kamon-spray/src/test/scala/kamon/spray/ClientRequestTracingSpec.scala b/kamon-spray/src/test/scala/kamon/spray/ClientRequestTracingSpec.scala index 393ae6ff..c7ec2a5f 100644 --- a/kamon-spray/src/test/scala/kamon/spray/ClientRequestTracingSpec.scala +++ b/kamon-spray/src/test/scala/kamon/spray/ClientRequestTracingSpec.scala @@ -5,13 +5,12 @@ import akka.actor.ActorSystem import org.scalatest.WordSpecLike import spray.httpx.RequestBuilding import spray.client.pipelining._ -import kamon.trace.{UowTrace, Trace} +import kamon.trace.{ UowTrace, Trace } import scala.concurrent.Await class ClientRequestTracingSpec extends TestKit(ActorSystem("server-request-tracing-spec")) with WordSpecLike with RequestBuilding with TestServer { implicit val ec = system.dispatcher - "the client instrumentation" should { "record segments for a client http request" in { @@ -20,8 +19,8 @@ class ClientRequestTracingSpec extends TestKit(ActorSystem("server-request-traci send { Get(s"http://127.0.0.1:$port/ok") - // We don't care about the response, just make sure we finish the Trace after the response has been received. - } map(rsp => Trace.finish()) + // We don't care about the response, just make sure we finish the Trace after the response has been received. + } map (rsp ⇒ Trace.finish()) val trace = expectMsgType[UowTrace] println(trace.segments) |