Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when run "make utest", meet crash. #105

Closed
wangyangkobe opened this issue Oct 25, 2016 · 3 comments
Closed

when run "make utest", meet crash. #105

wangyangkobe opened this issue Oct 25, 2016 · 3 comments

Comments

@wangyangkobe
Copy link

root@iZ11vpvnl7yZ:~/elli# make eunit
./rebar eunit skip_deps=true
==> elli (eunit)
Compiled src/elli_handler.erl
Compiled test/elli_http_tests.erl
test/elli_ssl_tests.erl:58: Warning: function body/1 is unused
test/elli_ssl_tests.erl:61: Warning: function headers/1 is unused
Compiled test/elli_ssl_tests.erl
Compiled test/elli_handover_tests.erl
Compiled test/elli_middleware_tests.erl
Compiled test/elli_tests.erl
Compiled src/elli.erl
Compiled src/elli_test.erl
Compiled src/elli_tcp.erl
Compiled src/elli_middleware_compress.erl
Compiled src/elli_util.erl
Compiled src/elli_example_callback_handover.erl
Compiled src/elli_middleware.erl
Compiled src/elli_example_middleware.erl
Compiled src/elli_example_callback.erl
Compiled src/elli_request.erl
Compiled src/elli_http.erl
elli_tests: register_test...*skipped*
undefined
*unexpected termination of test process*
::{{badmatch,{error,eaddrinuse}},
   [{elli,init,1,[{file,"src/elli.erl"},{line,111}]},
    {gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},
    {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}

=======================================================
  Failed: 0.  Skipped: 0.  Passed: 54.
One or more tests were cancelled.
Cover analysis: /root/elli/.eunit/index.html

=INFO REPORT==== 25-Oct-2016::12:30:37 ===
    application: inets
    exited: stopped
    type: temporary
ERROR: One or more eunit tests failed.
ERROR: eunit failed while processing /root/elli: rebar_abort
make: *** [eunit] Error 1
root@iZ11vpvnl7yZ:~/elli# 

So i want know how to run unittest for elli?

@andreashasse
Copy link
Collaborator

I don't get any errors when running the unit tests in elli. The error message that you get (eaddrinuse) hint to that you might have something running on the same port as is used in register_test in elli_tests.erl. The port used in that test is the default port, which is 8080.

@andreashasse
Copy link
Collaborator

@wangyangkobe: Can I close this ticket?

@wangyangkobe
Copy link
Author

@anha0825 Yes, you can. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants