test: headers first stage (#7127)

This commit is contained in:
Roman Krasiuk
2024-03-13 10:21:58 +01:00
committed by GitHub
parent 8b0292db01
commit b05f8a90fd

View File

@ -120,4 +120,11 @@ mod tests {
assert!(!StageId::Execution.is_downloading_stage());
}
// Multiple places around the codebase assume headers is the first stage.
// Feel free to remove this test if the assumption changes.
#[test]
fn stage_all_headers_first() {
assert_eq!(*StageId::ALL.first().unwrap(), StageId::Headers);
}
}