mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
test: headers first stage (#7127)
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user