diff options
Diffstat (limited to 'kamon-spray/src/test/scala')
-rw-r--r-- | kamon-spray/src/test/scala/kamon/ServerRequestTracingSpec.scala | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/kamon-spray/src/test/scala/kamon/ServerRequestTracingSpec.scala b/kamon-spray/src/test/scala/kamon/ServerRequestTracingSpec.scala index d789042e..648c2f3d 100644 --- a/kamon-spray/src/test/scala/kamon/ServerRequestTracingSpec.scala +++ b/kamon-spray/src/test/scala/kamon/ServerRequestTracingSpec.scala @@ -33,7 +33,8 @@ class ServerRequestTracingSpec extends TestKit(ActorSystem("server-request-traci } within(5 seconds) { - val traceId = expectMsgPF() { case Start(id, _) => id} + val traceId = expectMsgPF() { case Start(id, _) => id } + println("Expecting for trace: " + traceId) expectMsgPF() { case Finish(traceId) => } } } @@ -65,12 +66,13 @@ trait TestServer extends SimpleRoutingApp { path("ok") { complete("ok") } ~ - path("clearcontext"){ - complete { - Trace.clear - "ok" - } + path("clearcontext"){ + complete { + println("The Context in the route is: " + Trace.context) + Trace.clear + "ok" } + } } ), timeout.duration).localAddress.getPort |