@@ -471,6 +471,43 @@ static int s_test_connection_setup_shutdown_tls(struct aws_allocator *allocator,
471471}
472472AWS_TEST_CASE (connection_setup_shutdown_tls , s_test_connection_setup_shutdown_tls );
473473
474+ static int s_test_connection_setup_shutdown_proxy_setting_on_ev_not_found (struct aws_allocator * allocator , void * ctx ) {
475+ (void )ctx ;
476+ struct tester_options options = {
477+ .alloc = allocator ,
478+ .no_connection = true,
479+ };
480+ struct tester tester ;
481+ ASSERT_SUCCESS (s_tester_init (& tester , & options ));
482+ struct aws_http_client_connection_options client_options = AWS_HTTP_CLIENT_CONNECTION_OPTIONS_INIT ;
483+ struct proxy_env_var_settings proxy_ev_settings ;
484+ AWS_ZERO_STRUCT (proxy_ev_settings );
485+ proxy_ev_settings .env_var_type = AWS_HPEV_ENABLE ;
486+ client_options .proxy_ev_settings = & proxy_ev_settings ;
487+
488+ s_client_connection_options_init_tester (& client_options , & tester );
489+ tester .client_options = client_options ;
490+
491+ tester .server_connection_num = 0 ;
492+ tester .client_connection_num = 0 ;
493+ ASSERT_SUCCESS (aws_http_client_connect (& tester .client_options ));
494+
495+ /* Wait for server & client connections to finish setup */
496+ tester .wait_client_connection_num = 1 ;
497+ tester .wait_server_connection_num = 1 ;
498+ ASSERT_SUCCESS (s_tester_wait (& tester , s_tester_connection_setup_pred ));
499+
500+ release_all_client_connections (& tester );
501+ release_all_server_connections (& tester );
502+ ASSERT_SUCCESS (s_tester_wait (& tester , s_tester_connection_shutdown_pred ));
503+
504+ ASSERT_SUCCESS (s_tester_clean_up (& tester ));
505+ return AWS_OP_SUCCESS ;
506+ }
507+ AWS_TEST_CASE (
508+ connection_setup_shutdown_proxy_setting_on_ev_not_found ,
509+ s_test_connection_setup_shutdown_proxy_setting_on_ev_not_found );
510+
474511static int s_test_connection_h2_prior_knowledge (struct aws_allocator * allocator , void * ctx ) {
475512 (void )ctx ;
476513 struct tester_options options = {
0 commit comments