mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Test file can be compiled under R16
Fixes test failing under R16 due to elixir_suite build syntax error. The test will never be run under r16 as Elixir requires r17 and map anyway.
This commit is contained in:
parent
da468db648
commit
d3a2fa1e9a
@ -53,7 +53,9 @@ undefined_function(Module, Func, Args) ->
|
||||
run_elixir_test(Func) ->
|
||||
'Elixir.ExUnit':start([]),
|
||||
'Elixir.Code':load_file(list_to_binary(filename:join(test_dir(), atom_to_list(Func)))),
|
||||
#{failures := 0} = 'Elixir.ExUnit':run().
|
||||
%% I did not use map syntax, so that this file can still be build under R16
|
||||
ResultMap = 'Elixir.ExUnit':run(),
|
||||
{ok, 0} = maps:find(failures, ResultMap).
|
||||
|
||||
test_dir() ->
|
||||
{ok, CWD} = file:get_cwd(),
|
||||
|
Loading…
Reference in New Issue
Block a user