aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala')
-rw-r--r--kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala15
1 files changed, 8 insertions, 7 deletions
diff --git a/kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala b/kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala
index d2e569ad..b11acbb3 100644
--- a/kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala
+++ b/kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala
@@ -17,23 +17,24 @@
package kamon.testkit
import akka.actor.ActorSystem
-import akka.testkit.{ImplicitSender, TestKitBase}
+import akka.testkit.{ ImplicitSender, TestKitBase }
import com.typesafe.config.Config
import kamon.Kamon
-import kamon.metric.{Entity, EntitySnapshot, SubscriptionsDispatcher}
+import kamon.metric.{ Entity, EntitySnapshot, SubscriptionsDispatcher }
import kamon.trace.TraceContext
import kamon.util.LazyActorRef
-import org.scalatest.{BeforeAndAfterAll, Matchers, WordSpecLike}
+import org.scalatest.{ BeforeAndAfterAll, Matchers, WordSpecLike }
abstract class BaseKamonSpec(actorSystemName: String) extends TestKitBase with WordSpecLike with Matchers with ImplicitSender with BeforeAndAfterAll {
lazy val collectionContext = Kamon.metrics.buildDefaultCollectionContext
implicit lazy val system: ActorSystem = {
- Kamon.start()
- ActorSystem(actorSystemName, config)
+ Kamon.start(mergedConfig)
+ ActorSystem(actorSystemName, mergedConfig)
}
- def config: Config =
- Kamon.config
+ def config: Config = Kamon.defaultConfig
+
+ def mergedConfig: Config = config.withFallback(Kamon.defaultConfig)
def newContext(name: String): TraceContext =
Kamon.tracer.newContext(name)