diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-12-04 03:20:41 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-12-04 03:20:41 +0100 |
commit | 432fb45952c587bcebf81d718188e7067572cf49 (patch) | |
tree | 0aad1362df0af3a8b14a246edb609e2eb621d28f /kamon-core/src/test/scala | |
parent | 46d823ec5ab0265edacf7f704ad0e0c8a61609d1 (diff) | |
download | Kamon-432fb45952c587bcebf81d718188e7067572cf49.tar.gz Kamon-432fb45952c587bcebf81d718188e7067572cf49.tar.bz2 Kamon-432fb45952c587bcebf81d718188e7067572cf49.zip |
+ core: cleanup the simple trace implementation
Diffstat (limited to 'kamon-core/src/test/scala')
-rw-r--r-- | kamon-core/src/test/scala/kamon/trace/SimpleTraceSpec.scala | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/kamon-core/src/test/scala/kamon/trace/SimpleTraceSpec.scala b/kamon-core/src/test/scala/kamon/trace/SimpleTraceSpec.scala index a263ff7f..cda9cad7 100644 --- a/kamon-core/src/test/scala/kamon/trace/SimpleTraceSpec.scala +++ b/kamon-core/src/test/scala/kamon/trace/SimpleTraceSpec.scala @@ -88,13 +88,15 @@ class SimpleTraceSpec extends TestKitBase with WordSpecLike with Matchers with I expectNoMsg(2 seconds) secondSegment.finish() - val traceInfo = expectMsgType[TraceInfo] - Kamon(Trace)(system).unsubscribe(testActor) + within(10 seconds) { + val traceInfo = expectMsgType[TraceInfo] + Kamon(Trace)(system).unsubscribe(testActor) - traceInfo.name should be("simple-trace-without-segments") - traceInfo.segments.size should be(2) - traceInfo.segments.find(_.name == "segment-one") should be('defined) - traceInfo.segments.find(_.name == "segment-two") should be('defined) + traceInfo.name should be("simple-trace-without-segments") + traceInfo.segments.size should be(2) + traceInfo.segments.find(_.name == "segment-one") should be('defined) + traceInfo.segments.find(_.name == "segment-two") should be('defined) + } } } |