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

libhttpclient_test.so fails sometimes, works sometimes. #791

Closed
WeiyeeGoh opened this issue Jun 23, 2018 · 1 comment
Closed

libhttpclient_test.so fails sometimes, works sometimes. #791

WeiyeeGoh opened this issue Jun 23, 2018 · 1 comment

Comments

@WeiyeeGoh
Copy link

WeiyeeGoh commented Jun 23, 2018

I ran the tests in the Binaries and the only problem I got was found in the libhttpclient_test.so. Its strange because sometimes this test would run through fine and pass everything. Other times, I get that error with request_timeout_microsecond. I'm still very new to how this all works so let me know if there's anything else I should provide.

### Some of the Packages
gcc | 4:5.3.1-1ubuntu1
libstdc++6 | 5.4.0-6ubuntu1~16.04.9
libboost-dev | 1.58.0.1ubuntu1
libssl-dev | 1.0.2g-1ubuntu4.12

### WHOLE TEST CASE
Loaded libhttpclient_test.so...
=== Running tests from: ===
=== Running tests from: libhttpclient_test.so ===
Starting test case authentication_tests:empty_username_password...
Test case authentication_tests:empty_username_password PASSED
Starting test case authentication_tests:auth_no_data...
Test case authentication_tests:auth_no_data PASSED
Starting test case authentication_tests:unsuccessful_auth_with_basic_cred...
Test case authentication_tests:unsuccessful_auth_with_basic_cred PASSED
Starting test case authentication_tests:set_user_options_asio_http...
Test case authentication_tests:set_user_options_asio_http PASSED
Starting test case authentication_tests:set_user_options_asio_https...
Test case authentication_tests:set_user_options_asio_https PASSED
Starting test case building_request_tests:simple_values...
Test case building_request_tests:simple_values PASSED
Starting test case building_request_tests:body_types...
Test case building_request_tests:body_types PASSED
Starting test case building_request_tests:set_body_string_with_charset...
Test case building_request_tests:set_body_string_with_charset PASSED
Starting test case building_request_tests:empty_bodies...
Test case building_request_tests:empty_bodies PASSED
Starting test case building_request_tests:set_body...
Test case building_request_tests:set_body PASSED
Starting test case building_request_tests:set_body_with_charset...
Test case building_request_tests:set_body_with_charset PASSED
Starting test case building_request_tests:set_content_length_locale...
Test case building_request_tests:set_content_length_locale PASSED
Starting test case building_request_tests:set_port_locale...
Test case building_request_tests:set_port_locale PASSED
Starting test case building_request_tests:reuse_request...
Test case building_request_tests:reuse_request PASSED
Starting test case client_construction:string_types...
Test case client_construction:string_types PASSED
Starting test case client_construction:different_uris...
Test case client_construction:different_uris PASSED
Starting test case client_construction:client_construction_error_cases...
Test case client_construction:client_construction_error_cases PASSED
Starting test case client_construction:client_construction_no_scheme...
Test case client_construction:client_construction_no_scheme PASSED
Starting test case client_construction:copy_assignment...
Test case client_construction:copy_assignment PASSED
Starting test case client_construction:move_not_init...
Test case client_construction:move_not_init PASSED
Starting test case client_construction:move_init...
Test case client_construction:move_init PASSED
Starting test case client_construction:get_client_config...
Test case client_construction:get_client_config PASSED
Starting test case client_construction:BaseURI_test...
Test case client_construction:BaseURI_test PASSED
Starting test case client_construction:ssl_context_callback_https...
Test case client_construction:ssl_context_callback_https PASSED
Starting test case client_construction:ssl_context_callback_http...
Test case client_construction:ssl_context_callback_http PASSED
Starting test case connections_and_errors:pending_requests_after_client...
Test case connections_and_errors:pending_requests_after_client PASSED
Starting test case connections_and_errors:server_doesnt_exist...
Test case connections_and_errors:server_doesnt_exist PASSED
Starting test case connections_and_errors:open_failure...
Test case connections_and_errors:open_failure PASSED
Starting test case connections_and_errors:server_close_without_responding...
Test case connections_and_errors:server_close_without_responding PASSED
Starting test case connections_and_errors:request_timeout...
Test case connections_and_errors:request_timeout PASSED
Starting test case connections_and_errors:request_timeout_microsecond...
/mnt/c/users/weiyee/desktop/sudokusolver/casablanca/Release/tests/functional/http/client/connections_and_errors.cpp:165: error: Failure in request_timeout_microsecond: CHECK_EQUAL(_exc.error_code(), std::errc::timed_out)
Unexpected error code encountered. FAILED
Test case connections_and_errors:request_timeout_microsecond FAILED
Starting test case connections_and_errors:invalid_method...
Test case connections_and_errors:invalid_method PASSED
Starting test case connections_and_errors:handshake_fail...
Test case connections_and_errors:handshake_fail PASSED
Starting test case connections_and_errors:content_ready_timeout...
Test case connections_and_errors:content_ready_timeout PASSED
Starting test case connections_and_errors:stream_timeout...
Test case connections_and_errors:stream_timeout PASSED
Starting test case connections_and_errors:cancel_before_request...
Test case connections_and_errors:cancel_before_request PASSED
Starting test case connections_and_errors:cancel_after_headers...
Test case connections_and_errors:cancel_after_headers PASSED
Starting test case connections_and_errors:cancel_after_body...
Test case connections_and_errors:cancel_after_body PASSED
Starting test case connections_and_errors:cancel_with_error...
Test case connections_and_errors:cancel_with_error PASSED
Starting test case connections_and_errors:cancel_while_uploading_data...
Test case connections_and_errors:cancel_while_uploading_data PASSED
Starting test case connections_and_errors:cancel_while_downloading_data...
Test case connections_and_errors:cancel_while_downloading_data PASSED
Starting test case connections_and_errors:cancel_bad_port...
Test case connections_and_errors:cancel_bad_port PASSED
Starting test case outside_tests:request_headers...
Test case outside_tests:request_headers PASSED
Starting test case outside_tests:field_name_casing...
Test case outside_tests:field_name_casing PASSED
Starting test case outside_tests:field_name_duplicate...
Test case outside_tests:field_name_duplicate PASSED
Starting test case outside_tests:field_name_no_multivalue_allowed...
Test case outside_tests:field_name_no_multivalue_allowed PASSED
Starting test case outside_tests:copy_move...
Test case outside_tests:copy_move PASSED
Starting test case outside_tests:match_types...
Test case outside_tests:match_types PASSED
Starting test case outside_tests:match_edge_cases...
Test case outside_tests:match_edge_cases PASSED
Starting test case outside_tests:headers_find...
Test case outside_tests:headers_find PASSED
Starting test case outside_tests:headers_add...
Test case outside_tests:headers_add PASSED
Starting test case outside_tests:headers_iterators...
Test case outside_tests:headers_iterators PASSED
Starting test case outside_tests:headers_foreach...
Test case outside_tests:headers_foreach PASSED
Starting test case outside_tests:response_headers...
Test case outside_tests:response_headers PASSED
Starting test case outside_tests:cache_control_header...
Test case outside_tests:cache_control_header PASSED
Starting test case outside_tests:content_length_header...
Test case outside_tests:content_length_header PASSED
Starting test case outside_tests:date_header...
Test case outside_tests:date_header PASSED
Starting test case outside_tests:parsing_content_type_redundantsemicolon_json...
Test case outside_tests:parsing_content_type_redundantsemicolon_json PASSED
Starting test case outside_tests:parsing_content_type_redundantsemicolon_string...
Test case outside_tests:parsing_content_type_redundantsemicolon_string PASSED
Starting test case outside_tests:overwrite_http_header...
Test case outside_tests:overwrite_http_header PASSED
Starting test case http_methods_tests:http_methods...
Test case http_methods_tests:http_methods PASSED
Starting test case http_methods_tests:http_request_empty_method...
Test case http_methods_tests:http_request_empty_method PASSED
Starting test case http_methods_tests:empty_method...
Test case http_methods_tests:empty_method PASSED
Starting test case multiple_requests:requests_with_data...
Test case multiple_requests:requests_with_data PASSED
Starting test case multiple_requests:responses_with_data...
Test case multiple_requests:responses_with_data PASSED
Starting test case oauth1_tests:oauth1_token_accessors...
Test case oauth1_tests:oauth1_token_accessors PASSED
Starting test case oauth1_tests:oauth1_config_accessors...
Test case oauth1_tests:oauth1_config_accessors PASSED
Starting test case oauth1_tests:oauth1_signature_base_string...
Test case oauth1_tests:oauth1_signature_base_string PASSED
Starting test case oauth1_tests:oauth1_hmac_sha1_method...
Test case oauth1_tests:oauth1_hmac_sha1_method PASSED
Starting test case oauth1_tests:oauth1_plaintext_method...
Test case oauth1_tests:oauth1_plaintext_method PASSED
Starting test case oauth1_tests:oauth1_hmac_sha1_request...
Test case oauth1_tests:oauth1_hmac_sha1_request PASSED
Starting test case oauth1_tests:oauth1_plaintext_request...
Test case oauth1_tests:oauth1_plaintext_request PASSED
Starting test case oauth1_tests:oauth1_build_authorization_uri...
Test case oauth1_tests:oauth1_build_authorization_uri PASSED
Starting test case oauth1_tests:oauth1_token_from_redirected_uri...
Test case oauth1_tests:oauth1_token_from_redirected_uri PASSED
Starting test case oauth2_tests:oauth2_token_accessors...
Test case oauth2_tests:oauth2_token_accessors PASSED
Starting test case oauth2_tests:oauth2_config_accessors...
Test case oauth2_tests:oauth2_config_accessors PASSED
Starting test case oauth2_tests:oauth2_build_authorization_uri...
Test case oauth2_tests:oauth2_build_authorization_uri PASSED
Starting test case oauth2_tests:oauth2_token_from_code...
Test case oauth2_tests:oauth2_token_from_code PASSED
Starting test case oauth2_tests:oauth2_token_from_redirected_uri...
Test case oauth2_tests:oauth2_token_from_redirected_uri PASSED
Starting test case oauth2_tests:oauth2_token_from_refresh...
Test case oauth2_tests:oauth2_token_from_refresh PASSED
Starting test case oauth2_tests:oauth2_bearer_token...
Test case oauth2_tests:oauth2_bearer_token PASSED
Starting test case oauth2_tests:oauth2_token_parsing...
Test case oauth2_tests:oauth2_token_parsing PASSED
Starting test case outside_tests:outside_cnn_dot_com...
Test case outside_tests:outside_cnn_dot_com PASSED
Starting test case outside_tests:outside_wikipedia_compressed_http_response...
Test case outside_tests:outside_wikipedia_compressed_http_response PASSED
Starting test case outside_tests:outside_google_dot_com...
Test case outside_tests:outside_google_dot_com PASSED
Starting test case outside_tests:multiple_https_requests...
Test case outside_tests:multiple_https_requests PASSED
Starting test case outside_tests:reading_google_stream...
Test case outside_tests:reading_google_stream PASSED
Starting test case outside_tests:no_transfer_encoding_content_length...
Test case outside_tests:no_transfer_encoding_content_length PASSED
Starting test case outside_tests:server_selfsigned_cert...
Test case outside_tests:server_selfsigned_cert PASSED
Starting test case outside_tests:server_hostname_mismatch...
Test case outside_tests:server_hostname_mismatch PASSED
Starting test case outside_tests:server_cert_expired...
Test case outside_tests:server_cert_expired PASSED
Starting test case outside_tests:outside_ssl_json...
Test case outside_tests:outside_ssl_json PASSED
Starting test case pipeline_stage_tests:http_counting_methods...
Test case pipeline_stage_tests:http_counting_methods PASSED
Starting test case pipeline_stage_tests:http_short_circuit...
Test case pipeline_stage_tests:http_short_circuit PASSED
Starting test case pipeline_stage_tests:http_short_circuit_multiple...
Test case pipeline_stage_tests:http_short_circuit_multiple PASSED
Starting test case pipeline_stage_tests:http_short_circuit_no_count...
Test case pipeline_stage_tests:http_short_circuit_no_count PASSED
Starting test case pipeline_stage_tests:pipeline_stage_inspect_response...
Test case pipeline_stage_tests:pipeline_stage_inspect_response PASSED
Starting test case progress_handler_tests:set_progress_handler_no_bodies...
Test case progress_handler_tests:set_progress_handler_no_bodies PASSED
Starting test case progress_handler_tests:set_progress_handler_upload...
Test case progress_handler_tests:set_progress_handler_upload PASSED
Starting test case progress_handler_tests:set_progress_handler_download...
Test case progress_handler_tests:set_progress_handler_download PASSED
Starting test case progress_handler_tests:set_progress_handler_upload_and_download...
Test case progress_handler_tests:set_progress_handler_upload_and_download PASSED
Starting test case progress_handler_tests:set_progress_handler_open_failure...
Test case progress_handler_tests:set_progress_handler_open_failure PASSED
Starting test case progress_handler_tests:set_progress_handler_request_timeout...
Test case progress_handler_tests:set_progress_handler_request_timeout PASSED
Starting test case progress_handler_tests:upload_nobody_exception...
Test case progress_handler_tests:upload_nobody_exception PASSED
Starting test case progress_handler_tests:download_nobody_exception...
Test case progress_handler_tests:download_nobody_exception PASSED
Starting test case progress_handler_tests:data_upload_exception...
Test case progress_handler_tests:data_upload_exception PASSED
Starting test case progress_handler_tests:data_download_exception...
Test case progress_handler_tests:data_download_exception PASSED
Starting test case proxy_tests:web_proxy_uri...
Test case proxy_tests:web_proxy_uri PASSED
Starting test case proxy_tests:web_proxy_disabled...
Test case proxy_tests:web_proxy_disabled PASSED
Starting test case proxy_tests:web_proxy_discover...
Test case proxy_tests:web_proxy_discover PASSED
Starting test case proxy_tests:web_proxy_default...
Test case proxy_tests:web_proxy_default PASSED
Starting test case proxy_tests:web_proxy_default_construct...
Test case proxy_tests:web_proxy_default_construct PASSED
Starting test case proxy_tests:http_client_config_set_proxy...
Test case proxy_tests:http_client_config_set_proxy PASSED
Starting test case proxy_tests:auto_discovery_proxy...
Test case proxy_tests:auto_discovery_proxy PASSED
Starting test case proxy_tests:disabled_proxy...
Test case proxy_tests:disabled_proxy PASSED
Starting test case request_helper_tests:compress_and_decompress...
Test case request_helper_tests:compress_and_decompress PASSED
Starting test case request_helper_tests:non_rvalue_bodies...
Test case request_helper_tests:non_rvalue_bodies PASSED
Starting test case request_helper_tests:rvalue_bodies...
Test case request_helper_tests:rvalue_bodies PASSED
Starting test case request_helper_tests:json_bodies...
Test case request_helper_tests:json_bodies PASSED
Starting test case request_helper_tests:non_rvalue_2k_body...
Test case request_helper_tests:non_rvalue_2k_body PASSED
Starting test case request_helper_tests:default_user_agent...
Test case request_helper_tests:default_user_agent PASSED
Starting test case request_helper_tests:overwrite_user_agent...
Test case request_helper_tests:overwrite_user_agent PASSED
Starting test case request_stream_tests:set_body_stream_1...
Test case request_stream_tests:set_body_stream_1 PASSED
Starting test case request_stream_tests:set_body_stream_2...
Test case request_stream_tests:set_body_stream_2 PASSED
Starting test case request_stream_tests:without_content_length_1...
Test case request_stream_tests:without_content_length_1 PASSED
Starting test case request_stream_tests:without_content_length_2...
Test case request_stream_tests:without_content_length_2 PASSED
Starting test case request_stream_tests:with_content_length_1...
Test case request_stream_tests:with_content_length_1 PASSED
Starting test case request_stream_tests:producer_consumer_buffer_with_content_length...
Test case request_stream_tests:producer_consumer_buffer_with_content_length PASSED
Starting test case request_stream_tests:stream_partial_from_start...
Test case request_stream_tests:stream_partial_from_start PASSED
Starting test case request_stream_tests:stream_partial_from_middle...
Test case request_stream_tests:stream_partial_from_middle PASSED
Starting test case request_stream_tests:set_body_stream_exception...
Test case request_stream_tests:set_body_stream_exception PASSED
Starting test case request_stream_tests:stream_close_early...
Test case request_stream_tests:stream_close_early PASSED
Starting test case request_stream_tests:stream_close_early_with_exception...
Test case request_stream_tests:stream_close_early_with_exception PASSED
Starting test case request_stream_tests:stream_close_early_with_exception_and_contentlength...
Test case request_stream_tests:stream_close_early_with_exception_and_contentlength PASSED
Starting test case request_stream_tests:stream_close_early_with_contentlength...
Test case request_stream_tests:stream_close_early_with_contentlength PASSED
Starting test case request_stream_tests:get_with_body_nono...
Test case request_stream_tests:get_with_body_nono PASSED
Starting test case request_uri_tests:path_non_empty_ctor...
Test case request_uri_tests:path_non_empty_ctor PASSED
Starting test case request_uri_tests:path_empty_ctor...
Test case request_uri_tests:path_empty_ctor PASSED
Starting test case request_uri_tests:with_query_fragment...
Test case request_uri_tests:with_query_fragment PASSED
Starting test case request_uri_tests:uri_encoding...
Test case request_uri_tests:uri_encoding PASSED
Starting test case request_uri_tests:append_query_fragment...
Test case request_uri_tests:append_query_fragment PASSED
Starting test case response_extract_tests:extract_string...
Test case response_extract_tests:extract_string PASSED
Starting test case response_extract_tests:extract_utf8string...
Test case response_extract_tests:extract_utf8string PASSED
Starting test case response_extract_tests:extract_utf16string...
Test case response_extract_tests:extract_utf16string PASSED
Starting test case response_extract_tests:extract_string_force...
Test case response_extract_tests:extract_string_force PASSED
Starting test case response_extract_tests:extract_string_incorrect...
Test case response_extract_tests:extract_string_incorrect PASSED
Starting test case response_extract_tests:extract_empty_string...
Test case response_extract_tests:extract_empty_string PASSED
Starting test case response_extract_tests:extract_json...
Test case response_extract_tests:extract_json PASSED
Starting test case response_extract_tests:extract_json_force...
Test case response_extract_tests:extract_json_force PASSED
Starting test case response_extract_tests:extract_json_incorrect...
Test case response_extract_tests:extract_json_incorrect PASSED
Starting test case response_extract_tests:set_stream_try_extract_json...
Test case response_extract_tests:set_stream_try_extract_json PASSED
Starting test case response_extract_tests:extract_vector...
Test case response_extract_tests:extract_vector PASSED
Starting test case response_extract_tests:set_stream_try_extract_vector...
Test case response_extract_tests:set_stream_try_extract_vector PASSED
Starting test case response_extract_tests:head_response...
Test case response_extract_tests:head_response PASSED
Starting test case response_stream_tests:set_response_stream_producer_consumer_buffer...
Test case response_stream_tests:set_response_stream_producer_consumer_buffer PASSED
Starting test case response_stream_tests:set_response_stream_container_buffer...
Test case response_stream_tests:set_response_stream_container_buffer PASSED
Starting test case response_stream_tests:response_stream_file_stream...
Test case response_stream_tests:response_stream_file_stream PASSED
Starting test case response_stream_tests:response_stream_file_stream_close_early...
Test case response_stream_tests:response_stream_file_stream_close_early PASSED
Starting test case response_stream_tests:response_stream_large_file_stream...
Test case response_stream_tests:response_stream_large_file_stream PASSED
Starting test case response_stream_tests:response_stream_close_throws_with_exception...
Test case response_stream_tests:response_stream_close_throws_with_exception PASSED
Starting test case response_stream_tests:content_ready...
Test case response_stream_tests:content_ready PASSED
Starting test case response_stream_tests:xfer_chunked_with_length...
Test case response_stream_tests:xfer_chunked_with_length PASSED
Starting test case response_stream_tests:get_resp_stream...
Test case response_stream_tests:get_resp_stream PASSED
Starting test case response_stream_tests:xfer_chunked_multiple_chunks...
Test case response_stream_tests:xfer_chunked_multiple_chunks PASSED
Starting test case status_code_reason_phrase_tests:status_code...
Test case status_code_reason_phrase_tests:status_code PASSED
Starting test case status_code_reason_phrase_tests:reason_phrase...
Test case status_code_reason_phrase_tests:reason_phrase PASSED
Starting test case to_string_tests:request_to_string_without_body...
Test case to_string_tests:request_to_string_without_body PASSED
Starting test case to_string_tests:request_to_string_with_body...
Test case to_string_tests:request_to_string_with_body PASSED
Starting test case to_string_tests:response_to_string_without_body...
Test case to_string_tests:response_to_string_without_body PASSED
Starting test case to_string_tests:response_to_string_with_body...
Test case to_string_tests:response_to_string_with_body PASSED
**** connections_and_errors:request_timeout_microsecond FAILED ****

Finished running all 170 tests.
Took 21497.6ms

### JUST THE ERROR PART (this part is somewhere up there, but I wrote it down here so itd be easier to see since everything else just passes anyways)
Test case connections_and_errors:request_timeout PASSED
Starting test case connections_and_errors:request_timeout_microsecond...
/mnt/c/users/weiyee/desktop/sudokusolver/casablanca/Release/tests/functional/http/client/connections_and_errors.cpp:165: error: Failure in request_timeout_microsecond: CHECK_EQUAL(_exc.error_code(), std::errc::timed_out)
Unexpected error code encountered. FAILED
Test case connections_and_errors:request_timeout_microsecond FAILED
Starting test case connections_and_errors:invalid_method...
Test case connections_and_errors:invalid_method PASSED

@BillyONeal
Copy link
Member

I think #926 fixed this

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