File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,13 @@ impl AsyncWrite for Stream {
121121async fn test_connect ( ) {
122122 crate :: tests:: start_server ( 30000 ) . await ;
123123 let stream = Stream :: connect ( & Url :: from ( "http://127.0.0.1:30000/get" ) , Duration :: from_secs ( 2 ) ) . await ;
124+ let _ = stream. as_ref ( ) . map_err ( |error|println ! ( "{:?}" , error) ) ;
124125 assert ! ( stream. is_ok( ) ) ;
125126 let stream = Stream :: connect ( & Url :: from ( "http://localhost:30000/get" ) , Duration :: from_secs ( 2 ) ) . await ;
127+ let _ = stream. as_ref ( ) . map_err ( |error|println ! ( "{:?}" , error) ) ;
126128 assert ! ( stream. is_ok( ) ) ;
127129 let stream = Stream :: connect ( & Url :: from ( "http://localhost:88/get" ) , Duration :: from_secs ( 2 ) ) . await ;
130+ let _ = stream. as_ref ( ) . map_err ( |error|println ! ( "{:?}" , error) ) ;
128131 assert ! ( stream. is_err( ) ) ;
129132 if let Err ( error) = stream {
130133 println ! ( "{:?}" , error) ;
You can’t perform that action at this time.
0 commit comments