Files
n8n-openai-adapter/lib
Fernando Tapia Rico 2ea8a7d1f8 Rearrange assertions to capture error messages (#8186)
The Erlang's code server sends the error message (`[error] Can't load module ':lists' that resides in sticky dir`) to Erlang's `:logger`; the Elixir's `Logger` is added as a handler of the Erlang's `:logger`; and the `ExUnit.CaptureLog` proxy is added as a handler of Elixir's `Logger` when `capture_log/2` is used (and the `:console` backend is removed). 

Thanks to `Logger.flush/0`, we can be sure that all the messages sent to Elixir's `Logger` during the execution of the function are consumed by all the Elixir's `Logger` handlers. However, that function does not have any effect on Erlang's `:logger`, nor `:logger` provides a similar functionality (or at least I haven't found one).

That's why, due to race conditions, the error is printed instead of being captured.
2018-09-10 22:55:09 +02:00
..
2018-09-02 10:18:42 +02:00
2018-09-09 16:11:21 -07:00