--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/7ee66216-8d50-42a1-8ca0-6b2ea7a5faa0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This could me my bad: the test failure only occurs sometimes. I guess my computer is to slow :-)
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/3c1f5f6b-cfdc-440d-bbe8-a061660c6622%40googlegroups.com.
I'm curios about how to make a test for the flush/0 method: To test that it flushes both Logger and error_logger queues. (And similar tests for add_backend and remove_backend given opts[:flush])
I never really liked mocking and expectations but I don't see any other solution. Truth be told, I'm not even sure how to use mocks in Elixir :-)
Is it possible to test if a function call/statement results in a specific message to another processes?
Or is there a better solution? Or is it just a bad idea to try to test this?