Skip to content

Commit

Permalink
Add test case to ensure the domain block processor can correctly hand…
Browse files Browse the repository at this point in the history
…le the consensus block even it is out of order

Signed-off-by: linning <[email protected]>
  • Loading branch information
NingLin-P committed Jul 28, 2023
1 parent 00e27e6 commit 6bdf25c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions domains/client/domain-operator/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,12 @@ async fn test_executor_full_node_catching_up() {
Ferdie,
BasePath::new(directory.path().join("ferdie")),
);
// Produce 1 consensus block to initialize genesis domain
ferdie.produce_block_with_slot(1.into()).await.unwrap();
// Produce 5 consensus block to initialize genesis domain
//
// This also make the first consensus block being processed by the alice's domain
// block processor be block #5, to ensure it can correctly handle the consensus
// block even it is out of order.
ferdie.produce_blocks(5).await.unwrap();

// Run Alice (a evm domain authority node)
let alice = domain_test_service::DomainNodeBuilder::new(
Expand Down

0 comments on commit 6bdf25c

Please sign in to comment.