Unable to use Wallaby in release mode
RodolfoSilva opened this issue · 0 comments
RodolfoSilva commented
Elixir and Erlang/OTP versions
Erlang/OTP 26 [erts-14.2.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]
Elixir 1.16.3 (compiled with Erlang/OTP 26)
Operating system
MAC
Browser
Chrome
Driver
Chromedriver
Correct Configuration
- I confirm that I have Wallaby configured correctly.
Current behavior
11:05:23.736 [notice] Application wallaby exited: Wallaby.start(:normal, []) returned an error: shutdown: failed to start child: Wallaby.SessionStore
** (EXIT) an exception was raised:
** (UndefinedFunctionError) function ExUnit.after_suite/1 is undefined (module ExUnit is not available)
ExUnit.after_suite(#Function<0.14964136/1 in Wallaby.SessionStore.init/1>)
(wallaby 0.30.9) lib/wallaby/session_store.ex:41: Wallaby.SessionStore.init/1
(stdlib 5.2) gen_server.erl:980: :gen_server.init_it/2
(stdlib 5.2) gen_server.erl:935: :gen_server.init_it/6
(stdlib 5.2) proc_lib.erl:241: :proc_lib.init_p_do_apply/3
Kernel pid terminated (application_controller) ("{application_start_failure,wallaby,{{shutdown,{failed_to_start_child,'Elixir.Wallaby.SessionStore',{undef,[{'Elixir.ExUnit',after_suite,[#Fun<Elixir.Wallaby.SessionStore.0.14964136>],[]},{'Elixir.Wallaby.SessionStore',init,1,[{file,\"lib/wallaby/session_store.ex\"},{line,41}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,980}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,935}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,241}]}]}}},{'Elixir.Wallaby',start,[normal,[]]}}}")
Crash dump is being written to: erl_crash.dump...done
Expected behavior
Be able to use Wallby in release mode without force the ex_unit in the release.
More explanation: #589
CC: @lackac
Test Code & HTML
Generate a release without ex_unit, and try to run.
Demonstration Project
No response