File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -827,7 +827,12 @@ mod tests {
827
827
. body ( hyper:: Body :: from ( expected_body) )
828
828
. unwrap ( ) ;
829
829
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
+ ) ;
831
836
832
837
// Test case 2: Path is "/compare.html"
833
838
let req = Request :: default ( ) ;
@@ -842,6 +847,11 @@ mod tests {
842
847
. body ( hyper:: Body :: from ( expected_body) )
843
848
. unwrap ( ) ;
844
849
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
+ ) ;
846
856
}
847
857
}
You can’t perform that action at this time.
0 commit comments