test: fix header dl error test (#441)

This commit is contained in:
Bjerg
2022-12-14 16:32:26 +01:00
committed by GitHub
parent c2719ec27e
commit ae2fc494c8

View File

@@ -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");
}