mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 17:18:08 -05:00
test: fix header dl error test (#441)
This commit is contained in:
@@ -315,8 +315,12 @@ mod tests {
|
||||
let tip = headers.last().unwrap();
|
||||
runner.consensus.update_tip(tip.hash());
|
||||
|
||||
// These errors are not fatal but hand back control to the pipeline
|
||||
let result = rx.await.unwrap();
|
||||
assert_matches!(result, Err(StageError::Download(_)));
|
||||
assert_matches!(
|
||||
result,
|
||||
Ok(ExecOutput { stage_progress: 1000, done: false, reached_tip: false })
|
||||
);
|
||||
assert!(runner.validate_execution(input, result.ok()).is_ok(), "validation failed");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user