@@ -3865,12 +3865,16 @@ mod test {
38653865 None ,
38663866 None ,
38673867 None ,
3868- ) . unwrap ( ) ;
3868+ )
3869+ . unwrap ( ) ;
38693870 let bucket_http_80 = Bucket :: new ( "test-bucket" , region_http_80, credentials. clone ( ) )
38703871 . unwrap ( )
38713872 . with_path_style ( ) ;
38723873
3873- let presigned_url_80 = bucket_http_80. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3874+ let presigned_url_80 = bucket_http_80
3875+ . presign_get ( "/test.file" , 3600 , None )
3876+ . await
3877+ . unwrap ( ) ;
38743878 println ! ( "Presigned URL with port 80: {}" , presigned_url_80) ;
38753879
38763880 // Port 80 MUST be preserved in the URL for signature validation
@@ -3889,7 +3893,10 @@ mod test {
38893893 . unwrap ( )
38903894 . with_path_style ( ) ;
38913895
3892- let presigned_url_443 = bucket_https_443. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3896+ let presigned_url_443 = bucket_https_443
3897+ . presign_get ( "/test.file" , 3600 , None )
3898+ . await
3899+ . unwrap ( ) ;
38933900 println ! ( "Presigned URL with port 443: {}" , presigned_url_443) ;
38943901
38953902 // Port 443 MUST be preserved in the URL for signature validation
@@ -3908,8 +3915,14 @@ mod test {
39083915 . unwrap ( )
39093916 . with_path_style ( ) ;
39103917
3911- let presigned_url_9000 = bucket_http_9000. presign_get ( "/test.file" , 3600 , None ) . await . unwrap ( ) ;
3912- assert ! ( presigned_url_9000. contains( "minio:9000" ) , "Non-standard port should be preserved in URL" ) ;
3918+ let presigned_url_9000 = bucket_http_9000
3919+ . presign_get ( "/test.file" , 3600 , None )
3920+ . await
3921+ . unwrap ( ) ;
3922+ assert ! (
3923+ presigned_url_9000. contains( "minio:9000" ) ,
3924+ "Non-standard port should be preserved in URL"
3925+ ) ;
39133926 }
39143927
39153928 #[ maybe_async:: test(
0 commit comments