File tree Expand file tree Collapse file tree 3 files changed +1
-6
lines changed
Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ pub(super) async fn tls_connect<T: AsyncRead + AsyncWrite + Unpin>(
4545 tcp_stream : T ,
4646 cfg : & TlsConfig ,
4747) -> Result < TlsStream < T > > {
48- #[ cfg( test) ]
49- crate :: test:: log_uncaptured ( "tls connecting (openssl)" ) ;
5048 let mut stream = make_ssl_stream ( host, tcp_stream, cfg) . map_err ( |err| {
5149 Error :: from ( ErrorKind :: InvalidTlsConfig {
5250 message : err. to_string ( ) ,
Original file line number Diff line number Diff line change @@ -47,8 +47,6 @@ pub(super) async fn tls_connect<T: AsyncRead + AsyncWrite + Unpin>(
4747 tcp_stream : T ,
4848 cfg : & TlsConfig ,
4949) -> Result < TlsStream < T > > {
50- #[ cfg( test) ]
51- crate :: test:: log_uncaptured ( "tls connecting (rustls)" ) ;
5250 let name = ServerName :: try_from ( host)
5351 . map_err ( |e| ErrorKind :: DnsResolve {
5452 message : format ! ( "could not resolve {host:?}: {e}" ) ,
Original file line number Diff line number Diff line change @@ -1031,7 +1031,7 @@ async fn socks5_proxy() {
10311031
10321032 async fn test_hello ( uri : String ) -> Result < Document > {
10331033 let mut options = ClientOptions :: parse ( uri) . await . unwrap ( ) ;
1034- // error cases will spin for serverSelectionTimeoutMS while waiting to create a connection
1034+ // error cases will spin for serverSelectionTimeoutMS while trying to create a connection
10351035 options. server_selection_timeout = Some ( Duration :: from_secs ( 2 ) ) ;
10361036 let client = Client :: with_options ( options) . unwrap ( ) ;
10371037 client. database ( "db" ) . run_command ( doc ! { "hello" : 1 } ) . await
@@ -1051,7 +1051,6 @@ async fn socks5_proxy() {
10511051 } else {
10521052 String :: new ( )
10531053 } ;
1054- crate :: test:: log_uncaptured ( format ! ( "tls: {}" , & tls) ) ;
10551054
10561055 // fast_socks5 parses "localhost" into an IPV6 address, which is not accepted by the mock server
10571056 // used by the tests
You can’t perform that action at this time.
0 commit comments