Skip to content

Commit

Permalink
test(sync): add some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
CHr15F0x committed Nov 25, 2024
1 parent e0af01a commit e120fe3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/pathfinder/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,11 @@ mod tests {
};

tokio::select! {
_ = tokio::time::timeout(Duration::from_secs(10), sync.run()) => (),
result = tokio::time::timeout(Duration::from_secs(10), sync.run()) => match result {
Ok(Ok(())) => tracing::debug!("Sync succeeded"),
Ok(Err(e)) => tracing::debug!(%e, "Sync failed"),
Err(_) => tracing::debug!("Test timed out"),
},
_ = sync_done_watch(storage.clone(), expected_last_synced_block) => (),
}

Expand Down

0 comments on commit e120fe3

Please sign in to comment.