File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -827,7 +827,12 @@ mod tests {
827827 . body ( hyper:: Body :: from ( expected_body) )
828828 . unwrap ( ) ;
829829 assert_eq ! ( response. headers( ) , expected_response. headers( ) ) ;
830- assert_eq ! ( hyper:: body:: to_bytes( response. into_body( ) ) . await . unwrap( ) , hyper:: body:: to_bytes( expected_response. into_body( ) ) . await . unwrap( ) ) ;
830+ assert_eq ! (
831+ hyper:: body:: to_bytes( response. into_body( ) ) . await . unwrap( ) ,
832+ hyper:: body:: to_bytes( expected_response. into_body( ) )
833+ . await
834+ . unwrap( )
835+ ) ;
831836
832837 // Test case 2: Path is "/compare.html"
833838 let req = Request :: default ( ) ;
@@ -842,6 +847,11 @@ mod tests {
842847 . body ( hyper:: Body :: from ( expected_body) )
843848 . unwrap ( ) ;
844849 assert_eq ! ( response. headers( ) , expected_response. headers( ) ) ;
845- assert_eq ! ( hyper:: body:: to_bytes( response. into_body( ) ) . await . unwrap( ) , hyper:: body:: to_bytes( expected_response. into_body( ) ) . await . unwrap( ) ) ;
850+ assert_eq ! (
851+ hyper:: body:: to_bytes( response. into_body( ) ) . await . unwrap( ) ,
852+ hyper:: body:: to_bytes( expected_response. into_body( ) )
853+ . await
854+ . unwrap( )
855+ ) ;
846856 }
847857}
You can’t perform that action at this time.
0 commit comments