@@ -21,7 +21,7 @@ use iroh_willow::{
21
21
use proptest:: { collection:: vec, prelude:: Strategy , sample:: select} ;
22
22
use test_strategy:: proptest;
23
23
use testresult:: TestResult ;
24
- use tracing:: info;
24
+ use tracing:: { error , info} ;
25
25
26
26
/// Spawn an iroh node in a separate thread and tokio runtime, and return
27
27
/// the address and client.
@@ -82,7 +82,7 @@ fn test_get_many_weird_result(
82
82
) {
83
83
iroh_test:: logging:: setup_multithreaded ( ) ;
84
84
85
- tokio:: runtime:: Builder :: new_current_thread ( )
85
+ let res = tokio:: runtime:: Builder :: new_current_thread ( )
86
86
. enable_all ( )
87
87
. build ( )
88
88
. unwrap ( )
@@ -147,7 +147,7 @@ fn test_get_many_weird_result(
147
147
148
148
// We sync in both directions. This will only create a single session under the hood.
149
149
// Awaiting both intents ensures that the sync completed on both sides.
150
- // Alernatively , we could sync from one side only, the result must be the same, however we miss
150
+ // Alternatively , we could sync from one side only, the result must be the same, however we miss
151
151
// an event in the client currently to know when the betty peer (accepting peer) has finished.
152
152
let fut_x = async {
153
153
space_x
@@ -166,7 +166,7 @@ fn test_get_many_weird_result(
166
166
anyhow:: Ok ( ( ) )
167
167
} ;
168
168
let fut = async { tokio:: try_join!( fut_x, fut_y) } ;
169
- tokio:: time:: timeout ( Duration :: from_secs ( 5 ) , fut) . await ??;
169
+ tokio:: time:: timeout ( Duration :: from_secs ( 10 ) , fut) . await ??;
170
170
171
171
info ! ( "[{i}/{count}] sync complete" ) ;
172
172
@@ -197,8 +197,11 @@ fn test_get_many_weird_result(
197
197
tokio:: try_join!( iroh_x. shutdown( false ) , iroh_y. shutdown( false ) ) ?;
198
198
199
199
Ok ( ( ) )
200
- } )
201
- . map_err ( AnyhowStdErr ) ?;
200
+ } ) ;
201
+ if let Err ( err) = & res {
202
+ error ! ( ?err, "FAILED" ) ;
203
+ }
204
+ res. map_err ( AnyhowStdErr ) ?;
202
205
}
203
206
204
207
async fn space_to_map (
@@ -240,7 +243,6 @@ struct AnyhowStdErr(anyhow::Error);
240
243
241
244
impl std:: fmt:: Display for AnyhowStdErr {
242
245
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
243
- println ! ( "FAIL: {self:?}" ) ;
244
246
self . 0 . fmt ( f)
245
247
}
246
248
}
0 commit comments