@@ -1023,7 +1023,7 @@ fn server_address_from_socket_addr_ipv6() {
10231023
10241024#[ tokio:: test]
10251025#[ cfg( feature = "socks5-proxy" ) ]
1026- async fn socks5_proxy ( ) {
1026+ async fn socks5_proxy_skip_ci ( ) {
10271027 use crate :: {
10281028 error:: Result ,
10291029 options:: { ClientOptions , Tls } ,
@@ -1039,7 +1039,7 @@ async fn socks5_proxy() {
10391039
10401040 let options = get_client_options ( ) . await ;
10411041 let mapped_host = options. hosts . first ( ) . cloned ( ) . unwrap ( ) ;
1042- let replica_set = options
1042+ let all_hosts = options
10431043 . hosts
10441044 . iter ( )
10451045 . map ( ToString :: to_string)
@@ -1069,12 +1069,12 @@ async fn socks5_proxy() {
10691069 . await
10701070 . unwrap ( ) ;
10711071 test_hello ( format ! (
1072- "mongodb://{replica_set }/?proxyHost={ipv4_localhost}&proxyPort=1080{tls}"
1072+ "mongodb://{all_hosts }/?proxyHost={ipv4_localhost}&proxyPort=1080{tls}"
10731073 ) )
10741074 . await
10751075 . unwrap_err ( ) ;
10761076 test_hello ( format ! (
1077- "mongodb://{replica_set }/?proxyHost={ipv4_localhost}&proxyPort=1081{tls}"
1077+ "mongodb://{all_hosts }/?proxyHost={ipv4_localhost}&proxyPort=1081{tls}"
10781078 ) )
10791079 . await
10801080 . unwrap ( ) ;
@@ -1091,7 +1091,7 @@ async fn socks5_proxy() {
10911091 . await
10921092 . unwrap ( ) ;
10931093 test_hello ( format ! (
1094- "mongodb://{replica_set }/?proxyHost={ipv4_localhost}&proxyPort=1081&\
1094+ "mongodb://{all_hosts }/?proxyHost={ipv4_localhost}&proxyPort=1081&\
10951095 proxyUsername=nonexistentuser&proxyPassword=badauth{tls}"
10961096 ) )
10971097 . await
@@ -1109,13 +1109,13 @@ async fn socks5_proxy() {
11091109 . await
11101110 . unwrap ( ) ;
11111111 test_hello ( format ! (
1112- "mongodb://{replica_set }/?proxyHost={ipv4_localhost}&proxyPort=1080&\
1113- proxyUsername=username& proxyPassword=p4ssw0rd{tls}"
1112+ "mongodb://{all_hosts }/?proxyHost={ipv4_localhost}&proxyPort=1080&proxyUsername=username &\
1113+ proxyPassword=p4ssw0rd{tls}"
11141114 ) )
11151115 . await
11161116 . unwrap ( ) ;
11171117 test_hello ( format ! (
1118- "mongodb://{replica_set }/?proxyHost={ipv4_localhost}&proxyPort=1081{tls}"
1118+ "mongodb://{all_hosts }/?proxyHost={ipv4_localhost}&proxyPort=1081{tls}"
11191119 ) )
11201120 . await
11211121 . unwrap ( ) ;
0 commit comments