~wegtam/smederee

Showing details for patch 29cf60500e31af7581d37f24d4771d6bb9578993.
2024-09-27 (Fri), 11:19 AM - Jens Grassel - 29cf60500e31af7581d37f24d4771d6bb9578993

Ensure to load only default configuration for ServiceConfigTest.

- load only `reference.conf` files and environment variables for the tests
- fixes possible errors due to local development configuration
Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/test/scala/de/smederee/hub/config/ServiceConfigTest.scala with 1 added and 1 removed lines
diff -rN -u old-smederee/modules/hub/src/test/scala/de/smederee/hub/config/ServiceConfigTest.scala new-smederee/modules/hub/src/test/scala/de/smederee/hub/config/ServiceConfigTest.scala
--- old-smederee/modules/hub/src/test/scala/de/smederee/hub/config/ServiceConfigTest.scala	2024-11-22 16:08:49.572459532 +0000
+++ new-smederee/modules/hub/src/test/scala/de/smederee/hub/config/ServiceConfigTest.scala	2024-11-22 16:08:49.572459532 +0000
@@ -15,7 +15,7 @@
 
 final class ServiceConfigTest extends FunSuite {
     val rawDefaultConfig = new Fixture[Config]("defaultConfig") {
-        def apply() = ConfigFactory.load(getClass.getClassLoader)
+        def apply() = ConfigFactory.defaultReference(getClass.getClassLoader)
     }
 
     override def munitFixtures = List(rawDefaultConfig)