一旦运行我的测试,我就遇到了这个问题:
=ERROR REPORT==== 29-Jul-2016::01:34:22 ===
** Generic server <0.141.0> terminating
** Last message in was {send_req,
{{url,
***************,
*****************,443,
undefined,undefined,"/api",https,hostname},
[{"X-API-Version","0.5"},
{"Accept","*/*"}],
post,<<>>,
[{is_ssl,true},
{ssl_option,
[{certfile,
<<"/Users/slava/src/api/cert_dev.pem">>},
{password,"nil"}]}],
15000}}
** Reason for termination ==
** {{badmatch,false},
[{ibrowse_lib,get_value,2,
[{file,"/Users/slava/Documents/src/api/deps/ibrowse/src/ibrowse_lib.erl"},
{line,184}]},
{ibrowse_http_client,check_ssl_options,2,
{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,629}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,661}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
然后我运行了相同的测试,它失败并显示小错误消息。非常缺乏信息。
无法弄清楚究竟是什么迫使这份冗长的报道。
通常的一个:
1) test get vehicle data by vin
test/adapter_test.exs:14
match (=) failed
code: %HTTPotion.Response{} = Adapter.request(:get, 'vehicles', vin: @vin)
rhs: %HTTPotion.ErrorResponse{message: "closed"}
stacktrace:
test/remoto_adapter_test.exs:15: (test)