File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -316,17 +316,15 @@ async fn auth_test_options(
316
316
mechanism : Option < AuthMechanism > ,
317
317
success : bool ,
318
318
) {
319
- let mut options = ClientOptions :: builder ( )
320
- . hosts ( CLIENT_OPTIONS . hosts . clone ( ) )
321
- . max_pool_size ( 1 )
322
- . credential ( Credential {
323
- username : Some ( user. to_string ( ) ) ,
324
- password : Some ( password. to_string ( ) ) ,
325
- mechanism,
326
- ..Default :: default ( )
327
- } )
328
- . build ( ) ;
329
- options. tls = CLIENT_OPTIONS . tls . clone ( ) ;
319
+ let mut options = CLIENT_OPTIONS . clone ( ) ;
320
+ options. max_pool_size = Some ( 1 ) ;
321
+ options. credential = Credential {
322
+ username : Some ( user. to_string ( ) ) ,
323
+ password : Some ( password. to_string ( ) ) ,
324
+ mechanism,
325
+ ..Default :: default ( )
326
+ }
327
+ . into ( ) ;
330
328
331
329
auth_test ( Client :: with_options ( options) . unwrap ( ) , success) . await ;
332
330
}
@@ -387,6 +385,10 @@ async fn auth_test_uri(
387
385
}
388
386
}
389
387
388
+ if let Some ( true ) = CLIENT_OPTIONS . load_balanced {
389
+ uri. push_str ( "&loadBalanced=true" ) ;
390
+ }
391
+
390
392
auth_test (
391
393
Client :: with_uri_str ( uri. as_str ( ) ) . await . unwrap ( ) ,
392
394
should_succeed,
You can’t perform that action at this time.
0 commit comments