@@ -3708,12 +3708,16 @@ mod test {
37083708 None ,
37093709 None ,
37103710 None ,
3711- ) . unwrap ( ) ;
3711+ )
3712+ . unwrap ( ) ;
37123713 let bucket_http_80 = Bucket :: new ( "test-bucket" , region_http_80, credentials. clone ( ) )
37133714 . unwrap ( )
37143715 . with_path_style ( ) ;
37153716
3716- let presigned_url_80 = bucket_http_80. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3717+ let presigned_url_80 = bucket_http_80
3718+ . presign_get ( "/test.file" , 3600 , None )
3719+ . await
3720+ . unwrap ( ) ;
37173721 println ! ( "Presigned URL with port 80: {}" , presigned_url_80) ;
37183722
37193723 // Port 80 MUST be preserved in the URL for signature validation
@@ -3732,7 +3736,10 @@ mod test {
37323736 . unwrap ( )
37333737 . with_path_style ( ) ;
37343738
3735- let presigned_url_443 = bucket_https_443. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3739+ let presigned_url_443 = bucket_https_443
3740+ . presign_get ( "/test.file" , 3600 , None )
3741+ . await
3742+ . unwrap ( ) ;
37363743 println ! ( "Presigned URL with port 443: {}" , presigned_url_443) ;
37373744
37383745 // Port 443 MUST be preserved in the URL for signature validation
@@ -3751,8 +3758,14 @@ mod test {
37513758 . unwrap ( )
37523759 . with_path_style ( ) ;
37533760
3754- let presigned_url_9000 = bucket_http_9000. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3755- assert ! ( presigned_url_9000. contains( "minio:9000" ) , "Non-standard port should be preserved in URL" ) ;
3761+ let presigned_url_9000 = bucket_http_9000
3762+ . presign_get ( "/test.file" , 3600 , None )
3763+ . await
3764+ . unwrap ( ) ;
3765+ assert ! (
3766+ presigned_url_9000. contains( "minio:9000" ) ,
3767+ "Non-standard port should be preserved in URL"
3768+ ) ;
37563769 }
37573770
37583771 #[ maybe_async:: test(
0 commit comments