Skip to content

Commit

Permalink
test: headers first stage (#7127)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Mar 13, 2024
1 parent 8b0292d commit b05f8a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/primitives/src/stage/id.rs
Expand Up @@ -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);
}
}

0 comments on commit b05f8a9

Please sign in to comment.