aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/instrumentation/RunnableInstrumentationSpec.scala
diff options
context:
space:
mode:
authorIvan Topolnak <ivantopo@gmail.com>2013-10-02 13:49:34 -0300
committerIvan Topolnak <ivantopo@gmail.com>2013-10-02 13:49:34 -0300
commitdf99b59fd05c5f5e6a4b48bb5e3485449a6d6eda (patch)
treea3ee49d1553113447390d043976c9ab31ea9b779 /kamon-core/src/test/scala/kamon/instrumentation/RunnableInstrumentationSpec.scala
parent03c6a7d81e38dfa856ede9a188467b2c01bfb5f1 (diff)
downloadKamon-df99b59fd05c5f5e6a4b48bb5e3485449a6d6eda.tar.gz
Kamon-df99b59fd05c5f5e6a4b48bb5e3485449a6d6eda.tar.bz2
Kamon-df99b59fd05c5f5e6a4b48bb5e3485449a6d6eda.zip
wip
Diffstat (limited to 'kamon-core/src/test/scala/kamon/instrumentation/RunnableInstrumentationSpec.scala')
-rw-r--r--kamon-core/src/test/scala/kamon/instrumentation/RunnableInstrumentationSpec.scala6
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))
})