Hey all.
I have a falling eunit test on GitHub, but locally all tests are ok.
The GitHub action log:
Run rebar3 do eunit, ct
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling changeset
===> Performing EUnit tests...
.............F..
Failures:
1) changeset_reference_validator:validate_change_test/0: module 'changeset_reference_validator'
Failure/Error: {error,badarg,
[{erlang,list_to_ref,
["#Ref<0.4192537678.4073193475.71181>"],
[{error_info,#{module => erl_erts_errors}}]},
{changeset_reference_validator,validate_change_test,
0,
[{file,
"/__w/changeset/changeset/src/validators/changeset_reference_validator.erl"},
{line,35}]},
{eunit_test,'-mf_wrapper/2-fun-0-',2,
[{file,"eunit_test.erl"},{line,273}]},
{eunit_test,run_testfun,1,
[{file,"eunit_test.erl"},{line,71}]},
{eunit_proc,run_test,1,
[{file,"eunit_proc.erl"},{line,531}]},
{eunit_proc,with_timeout,3,
[{file,"eunit_proc.erl"},{line,356}]},
{eunit_proc,handle_test,2,
[{file,"eunit_proc.erl"},{line,514}]},
{eunit_proc,tests_inorder,3,
[{file,"eunit_proc.erl"},{line,456}]}]}
Output:
Finished in 0.178 seconds
16 tests, 1 failures
===> Error running tests
Error: Process completed with exit code 1.
This is falling
list_to_ref("#Ref<0.4192537678.4073193475.71181>").
but why?
This is my machine log:
rebar3 do eunit, ct
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling changeset
===> Performing EUnit tests...
................
Finished in 0.113 seconds
16 tests, 0 failures
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling changeset
===> Running Common Test suites...
All 0 tests passed.
GitHub workflow and my machine are using the same 25.3.2
OTP version.
The lib repo: GitHub - williamthome/changeset: An OTP library to validate data based on Ecto changeset library (Elixir).
I appreciate any help.