I’m trying to set some config to be used only for testing. I am following instructions from here
If I add the specified lines to my test.exs
config :elixir_auth_google,
client_id: "foo",
client_secret: "bar",
httpoison_mock: true
I get the following error when I run mix test
ERROR! the application :elixir_auth_google has a different value set for key :httpoison_mock during runtime compared to compile time. Since this application environment entry was marked as compile time, this difference can lead to different behaviour than expected:
* Compile time value was not set
* Runtime value was set to: true
But the app starts up fine. Have been pulling my hair out, have tried throwing this config in various other places to also set for compile time (config.exs is what I’d have expected to work) and nothing seems to make this go away.
Halp. What do?