Closed nalundgaard closed 7 years ago
On erlang 20.0.5, it looks like there's a second failure (at least on my local MacOS 10.12):
$ make all test
./rebar compile
==> lhttpc (compile)
Compiled src/lhttpc_lib.erl
Compiled src/lhttpc.erl
Compiled src/lhttpc_client.erl
Compiled src/lhttpc_sup.erl
Compiled src/lhttpc_sock.erl
src/lhttpc_manager.erl:268: Warning: crypto:rand_bytes/1 is deprecated and will be removed in a future release; use crypto:strong_rand_bytes/1
Compiled src/lhttpc_manager.erl
./rebar doc
==> lhttpc (doc)
./rebar eunit
==> lhttpc (eunit)
Compiled test/lhttpc_lib_tests.erl
Compiled test/lhttpc_manager_tests.erl
Compiled test/socket_server.erl
Compiled test/webserver.erl
test/lhttpc_tests.erl:400: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
test/lhttpc_tests.erl:416: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
Compiled test/lhttpc_tests.erl
test/simple_load.erl:3: Warning: behaviour gen_httpd undefined
Compiled test/simple_load.erl
Compiled src/lhttpc_lib.erl
Compiled src/lhttpc.erl
Compiled src/lhttpc_sock.erl
Compiled src/lhttpc_sup.erl
src/lhttpc_manager.erl:268: Warning: crypto:rand_bytes/1 is deprecated and will be removed in a future release; use crypto:strong_rand_bytes/1
Compiled src/lhttpc_manager.erl
Compiled src/lhttpc_client.erl
======================== EUnit ========================
module 'webserver'
module 'socket_server'
module 'simple_load'
module 'lhttpc_sup'
module 'lhttpc_sock'
module 'lhttpc_manager'
module 'lhttpc_manager_tests'
lhttpc_manager_tests:52: manager_test_...[0.004 s] ok
lhttpc_manager_tests:53: manager_test_...[0.001 s] ok
lhttpc_manager_tests:54: manager_test_...[3.104 s] ok
lhttpc_manager_tests:55: manager_test_...[16.009 s] ok
lhttpc_manager_tests:56: manager_test_...[2.004 s] ok
lhttpc_manager_tests:57: manager_test_...[2.002 s] ok
=INFO REPORT==== 25-Sep-2017::09:25:15 ===
application: lhttpc
exited: stopped
type: temporary
=INFO REPORT==== 25-Sep-2017::09:25:15 ===
application: ssl
exited: stopped
type: temporary
[done in 23.142 s]
[done in 23.246 s]
module 'lhttpc_lib'
module 'lhttpc_lib_tests'
lhttpc_lib_tests:37: parse_url_test_...ok
lhttpc_lib_tests:47: parse_url_test_...ok
lhttpc_lib_tests:57: parse_url_test_...ok
lhttpc_lib_tests:67: parse_url_test_...ok
lhttpc_lib_tests:77: parse_url_test_...ok
lhttpc_lib_tests:87: parse_url_test_...ok
lhttpc_lib_tests:97: parse_url_test_...ok
lhttpc_lib_tests:107: parse_url_test_...ok
lhttpc_lib_tests:117: parse_url_test_...[0.008 s] ok
lhttpc_lib_tests:128: parse_url_test_...ok
lhttpc_lib_tests:138: parse_url_test_...ok
lhttpc_lib_tests:148: parse_url_test_...ok
lhttpc_lib_tests:158: parse_url_test_...ok
lhttpc_lib_tests:168: parse_url_test_...ok
lhttpc_lib_tests:178: parse_url_test_...ok
lhttpc_lib_tests:188: parse_url_test_...ok
lhttpc_lib_tests:198: parse_url_test_...ok
lhttpc_lib_tests:208: parse_url_test_...ok
lhttpc_lib_tests:218: parse_url_test_...ok
[done in 0.066 s]
[done in 0.066 s]
module 'lhttpc_client'
module 'lhttpc'
module 'lhttpc_tests'
lhttpc_tests:113: tcp_test_...[0.024 s] ok
lhttpc_tests:114: tcp_test_...[0.008 s] ok
lhttpc_tests:115: tcp_test_...[0.002 s] ok
lhttpc_tests:116: tcp_test_...[0.004 s] ok
lhttpc_tests:117: tcp_test_...[0.003 s] ok
lhttpc_tests:118: tcp_test_...[0.001 s] ok
lhttpc_tests:119: tcp_test_...[0.002 s] ok
lhttpc_tests:120: tcp_test_...[0.002 s] ok
lhttpc_tests:121: tcp_test_...[0.002 s] ok
lhttpc_tests:122: tcp_test_...[0.008 s] ok
lhttpc_tests:123: tcp_test_...[0.002 s] ok
lhttpc_tests:124: tcp_test_...[0.002 s] ok
lhttpc_tests:125: tcp_test_...[0.002 s] ok
lhttpc_tests:126: tcp_test_...[0.001 s] ok
lhttpc_tests:127: tcp_test_...[0.007 s] ok
lhttpc_tests:128: tcp_test_...[0.002 s] ok
lhttpc_tests:129: tcp_test_...[0.005 s] ok
lhttpc_tests:130: tcp_test_...[0.002 s] ok
lhttpc_tests:131: tcp_test_...[0.001 s] ok
lhttpc_tests:132: tcp_test_...[0.009 s] ok
lhttpc_tests:133: tcp_test_...[0.002 s] ok
lhttpc_tests:134: tcp_test_...[0.004 s] ok
lhttpc_tests:135: tcp_test_...[0.002 s] ok
lhttpc_tests:136: tcp_test_...[0.003 s] ok
lhttpc_tests:137: tcp_test_...[0.008 s] ok
lhttpc_tests:138: tcp_test_...[0.002 s] ok
lhttpc_tests:139: tcp_test_...ok
lhttpc_tests:140: tcp_test_...[0.002 s] ok
lhttpc_tests:141: tcp_test_...[0.051 s] ok
lhttpc_tests:142: tcp_test_...[0.104 s] ok
lhttpc_tests:143: tcp_test_...[0.053 s] ok
lhttpc_tests:144: tcp_test_...*failed*
in function lhttpc_tests:'-chunked_encoding/0-fun-8-'/1 (test/lhttpc_tests.erl, line 497)
in call from lhttpc_tests:chunked_encoding/0 (test/lhttpc_tests.erl, line 496)
**error:{assertEqual,[{module,lhttpc_tests},
{line,497},
{expression,"lhttpc_lib : header_value ( \"trailer-1\" , headers ( SecondResponse ) )"},
{expected,"1"},
{value,undefined}]}
output:<<"">>
lhttpc_tests:145: tcp_test_...[0.004 s] ok
lhttpc_tests:146: tcp_test_...[0.003 s] ok
lhttpc_tests:147: tcp_test_...
=ERROR REPORT==== 25-Sep-2017::09:25:16 ===
Error in process <0.495.0> with exit value:
{closed,[{webserver,read_chunks,3,[{file,"test/webserver.erl"},{line,77}]},
{webserver,read_chunked,3,[{file,"test/webserver.erl"},{line,56}]},
{lhttpc_tests,chunked_upload,5,
[{file,"test/lhttpc_tests.erl"},{line,915}]},
{webserver,server_loop,5,[{file,"test/webserver.erl"},{line,117}]},
{webserver,accept_connection,4,
[{file,"test/webserver.erl"},{line,52}]}]}
*skipped*
undefined
*unexpected termination of test process*
::{closed,[{webserver,read_chunks,3,[{file,"test/webserver.erl"},{line,77}]},
{webserver,read_chunked,3,[{file,"test/webserver.erl"},{line,56}]},
{lhttpc_tests,chunked_upload,5,
[{file,"test/lhttpc_tests.erl"},{line,915}]},
{webserver,server_loop,5,[{file,"test/webserver.erl"},{line,117}]},
{webserver,accept_connection,4,[{file,[...]},{line,...}]}]}
=INFO REPORT==== 25-Sep-2017::09:25:16 ===
application: lhttpc
exited: stopped
type: temporary
=INFO REPORT==== 25-Sep-2017::09:25:16 ===
application: ssl
exited: stopped
type: temporary
lhttpc_tests:169: ssl_test_...[0.144 s] ok
lhttpc_tests:170: ssl_test_...*failed*
in function lhttpc_tests:ssl_get_ipv6/0 (test/lhttpc_tests.erl, line 730)
**error:{badmatch,{error,{{options,{{server_name_indication,"::1"}}},
[{lhttpc_client,send_request,1,
[{file,"src/lhttpc_client.erl"},{line,222}]},
{lhttpc_client,execute,9,
[{file,"src/lhttpc_client.erl"},{line,171}]},
{lhttpc_client,request,9,
[{file,"src/lhttpc_client.erl"},
{line,93}]}]}}}
output:<<"">>
lhttpc_tests:171: ssl_test_...[0.014 s] ok
lhttpc_tests:172: ssl_test_...[0.020 s] ok
lhttpc_tests:173: ssl_test_...[0.051 s] ok
=ERROR REPORT==== 25-Sep-2017::09:25:16 ===
Error in process <0.525.0> with exit value:
{{badmatch,{error,closed}},
[{webserver,accept,2,[{file,"test/webserver.erl"},{line,155}]},
{webserver,accept_connection,4,[{file,"test/webserver.erl"},{line,51}]}]}
=INFO REPORT==== 25-Sep-2017::09:25:16 ===
application: lhttpc
exited: stopped
type: temporary
=INFO REPORT==== 25-Sep-2017::09:25:16 ===
application: ssl
exited: stopped
type: temporary
lhttpc_tests:179: other_test_...ok
[done in 0.700 s]
[done in 0.700 s]
=======================================================
Failed: 2. Skipped: 0. Passed: 63.
One or more tests were cancelled.
Cover analysis: /Users/nal/src/alertlogic/erlang/lhttpc/.eunit/index.html
=INFO REPORT==== 25-Sep-2017::09:25:16 ===
application: public_key
exited: stopped
type: temporary
=INFO REPORT==== 25-Sep-2017::09:25:16 ===
application: asn1
exited: stopped
type: temporary
ERROR: One or more eunit tests failed.
See #10. Unit tests are failing on Erlang 20.