diff --git a/config/src/test/scala/com/typesafe/config/impl/ConfigSubstitutionTest.scala b/config/src/test/scala/com/typesafe/config/impl/ConfigSubstitutionTest.scala index 2eff0545..e0dcdcc5 100644 --- a/config/src/test/scala/com/typesafe/config/impl/ConfigSubstitutionTest.scala +++ b/config/src/test/scala/com/typesafe/config/impl/ConfigSubstitutionTest.scala @@ -466,7 +466,8 @@ class ConfigSubstitutionTest extends TestUtils { private val delayedMergeObjectResolveProblem5 = { parseObject(""" defaults { - a = ${item1.b} // tricky cycle + a = ${item1.b} // tricky cycle - we won't see ${defaults} + // as we resolve this b = 2 } @@ -488,7 +489,7 @@ class ConfigSubstitutionTest extends TestUtils { assertEquals("item1.b", 2, resolved.getInt("item1.b")) assertEquals("item2.b", 2, resolved.getInt("item2.b")) - assertEquals("defaults.a", 2, resolved.getInt("defaults.a")) + assertEquals("defaults.a", 7, resolved.getInt("defaults.a")) } private val delayedMergeObjectResolveProblem6 = {