@@ -34,7 +34,7 @@ async fn min_heartbeat_frequency() {
3434 setup_client_options. hosts . drain ( 1 ..) ;
3535 setup_client_options. direct_connection = Some ( true ) ;
3636
37- let setup_client = TestClient :: with_options ( Some ( setup_client_options. clone ( ) ) , true ) . await ;
37+ let setup_client = TestClient :: with_options ( Some ( setup_client_options. clone ( ) ) ) . await ;
3838
3939 if !setup_client. supports_fail_command ( ) . await {
4040 println ! ( "skipping min_heartbeat_frequency test due to server not supporting fail points" ) ;
@@ -102,13 +102,12 @@ async fn sdam_pool_management() {
102102 Some ( Duration :: from_millis ( 50 ) ) ,
103103 None ,
104104 event_handler. clone ( ) ,
105- true ,
106105 )
107106 . await ;
108107
109108 if !VersionReq :: parse ( ">= 4.2.9" )
110109 . unwrap ( )
111- . matches ( client. server_version . as_ref ( ) . unwrap ( ) )
110+ . matches ( & client. server_version )
112111 {
113112 println ! (
114113 "skipping sdam_pool_management test due to server not supporting appName failCommand"
@@ -160,11 +159,11 @@ async fn sdam_min_pool_size_error() {
160159 setup_client_options. hosts . drain ( 1 ..) ;
161160 setup_client_options. direct_connection = Some ( true ) ;
162161
163- let setup_client = TestClient :: with_options ( Some ( setup_client_options. clone ( ) ) , true ) . await ;
162+ let setup_client = TestClient :: with_options ( Some ( setup_client_options. clone ( ) ) ) . await ;
164163
165164 if !VersionReq :: parse ( ">= 4.9.0" )
166165 . unwrap ( )
167- . matches ( setup_client. server_version . as_ref ( ) . unwrap ( ) )
166+ . matches ( & setup_client. server_version )
168167 {
169168 println ! (
170169 "skipping sdam_pool_management test due to server not supporting appName failCommand"
@@ -243,10 +242,10 @@ async fn auth_error() {
243242
244243 let mut setup_client_options = CLIENT_OPTIONS . clone ( ) ;
245244 setup_client_options. hosts . drain ( 1 ..) ;
246- let setup_client = TestClient :: with_options ( Some ( setup_client_options. clone ( ) ) , true ) . await ;
245+ let setup_client = TestClient :: with_options ( Some ( setup_client_options. clone ( ) ) ) . await ;
247246 if !VersionReq :: parse ( ">= 4.4.0" )
248247 . unwrap ( )
249- . matches ( setup_client. server_version . as_ref ( ) . unwrap ( ) )
248+ . matches ( & setup_client. server_version )
250249 {
251250 println ! ( "skipping auth_error test due to server not supporting appName failCommand" ) ;
252251 return ;
0 commit comments