I would guess it is a classpath ordering issue. To be sure you load the right config from tests you can use another file name for the test config name. In the tests you load that config and pass to the factory method of the ActorSystem.
/Patrik On Mon, Jan 5, 2015 at 1:45 PM, Anders Båtstrand <[email protected]> wrote: > How do you load the configuration? And could you post the output of > Config.origin() after you have loaded the configuration? > > I had a problem with configuration being overidden, but solved it by > reading the javadoc on ConfigFactor.parseResourcesAnySyntax (cleared up a > few things for me). > > Best regards, > > Anders Båtstrand > > kl. 04:32:26 UTC+1 mandag 5. januar 2015 skrev manwood følgende: > >> I have a small Akka application with application.conf files under both >> test and main directories. Initially, when running the tests, the >> application.conf file under the test directory was being used (as desired). >> However, whilst building out the application, adding dependencies etc, at >> some point the test code has started to use the application.conf under main >> instead. >> >> What could have caused this? How can I establish why? >> > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
