diff options
author | Ivan Topolnak <ivantopo@gmail.com> | 2013-10-02 13:49:34 -0300 |
---|---|---|
committer | Ivan Topolnak <ivantopo@gmail.com> | 2013-10-02 13:49:34 -0300 |
commit | e9a4828ae75b19d63090825fa556596e433d2383 (patch) | |
tree | 8fed730cf3f68f11e46b8df36466f6070da7ea5f /kamon-core/src/test/scala/kamon/instrumentation | |
parent | e2a9aa15b6ecda441fd81960b31b0b836af6d64a (diff) | |
download | Kamon-e9a4828ae75b19d63090825fa556596e433d2383.tar.gz Kamon-e9a4828ae75b19d63090825fa556596e433d2383.tar.bz2 Kamon-e9a4828ae75b19d63090825fa556596e433d2383.zip |
wip
Diffstat (limited to 'kamon-core/src/test/scala/kamon/instrumentation')
-rw-r--r-- | kamon-core/src/test/scala/kamon/instrumentation/RunnableInstrumentationSpec.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kamon-core/src/test/scala/kamon/instrumentation/RunnableInstrumentationSpec.scala b/kamon-core/src/test/scala/kamon/instrumentation/RunnableInstrumentationSpec.scala index 86bef0d8..789c7c77 100644 --- a/kamon-core/src/test/scala/kamon/instrumentation/RunnableInstrumentationSpec.scala +++ b/kamon-core/src/test/scala/kamon/instrumentation/RunnableInstrumentationSpec.scala @@ -16,16 +16,16 @@ class RunnableInstrumentationSpec extends WordSpec with Matchers with ScalaFutur "a instrumented runnable" when { "created in a thread that does have a TraceContext" must { "preserve the TraceContext" which { - "should be available during the run method execution" in { new FutureWithContextFixture { + "should be available during the run method execution" in new FutureWithContextFixture { whenReady(futureWithContext) { result => result.value should equal(testContext) } - }} + } "should be available during the execution of onComplete callbacks" in { new FutureWithContextFixture { val onCompleteContext = Promise[TraceContext]() - Tracer.clear + futureWithContext.onComplete({ case _ => onCompleteContext.complete(Success(Tracer.context.get)) }) |