@@ -40,7 +40,6 @@ async fn test_executor_full_node_catching_up() {
4040
4141 // run cirrus dave (a secondary chain full node)
4242 let dave = cirrus_test_service:: TestNodeBuilder :: new ( tokio_handle, Dave )
43- . connect_to_parachain_node ( & charlie)
4443 . connect_to_relay_chain_node ( & alice)
4544 . build ( Role :: Full )
4645 . await ;
@@ -86,7 +85,6 @@ async fn execution_proof_creation_and_verification_should_work() {
8685
8786 // run cirrus dave (a secondary chain full node)
8887 let dave = cirrus_test_service:: TestNodeBuilder :: new ( tokio_handle, Dave )
89- . connect_to_parachain_node ( & charlie)
9088 . connect_to_relay_chain_node ( & alice)
9189 . build ( Role :: Full )
9290 . await ;
@@ -347,7 +345,6 @@ async fn invalid_execution_proof_should_not_work() {
347345
348346 // run cirrus dave (a secondary chain full node)
349347 let dave = cirrus_test_service:: TestNodeBuilder :: new ( tokio_handle, Dave )
350- . connect_to_parachain_node ( & charlie)
351348 . connect_to_relay_chain_node ( & alice)
352349 . build ( Role :: Full )
353350 . await ;
@@ -613,8 +610,9 @@ async fn pallet_executor_unsigned_extrinsics_should_work() {
613610 } ;
614611
615612 assert_eq ! ( vec![ tx1, tx2, tx3] , ready_txs( ) ) ;
616- alice_executor. wait_for_blocks ( 1 ) . await ;
617- // The ready txs will be consumed and included in the next block.
613+
614+ // Wait for a few more blocks to ensure the ready txs can be consumed.
615+ alice_executor. wait_for_blocks ( 5 ) . await ;
618616 assert ! ( ready_txs( ) . is_empty( ) ) ;
619617
620618 alice_executor. wait_for_blocks ( 4 ) . await ;
@@ -657,16 +655,19 @@ async fn pallet_executor_unsigned_extrinsics_should_work() {
657655 // )
658656 // );
659657
660- alice_executor. wait_for_blocks ( 1 ) . await ;
658+ // Wait for a few more blocks to ensure the ready txs can be consumed.
659+ alice_executor. wait_for_blocks ( 5 ) . await ;
661660 assert ! ( ready_txs( ) . is_empty( ) ) ;
662661 assert_eq ! ( HashSet :: from( [ tx5, tx6, tx7] ) , future_txs( ) ) ;
662+
663663 let tx4 = create_and_send_submit_execution_receipt ( 4 )
664664 . await
665665 . expect ( "Submit receipt successfully" ) ;
666666 // All future txs become ready once the required tx is ready.
667667 assert_eq ! ( vec![ tx4, tx5, tx6, tx7] , ready_txs( ) ) ;
668668 assert ! ( future_txs( ) . is_empty( ) ) ;
669- alice_executor. wait_for_blocks ( 1 ) . await ;
670- // The ready txs will be consumed and included in the next block.
669+
670+ // Wait for a few more blocks to ensure the ready txs can be consumed.
671+ alice_executor. wait_for_blocks ( 5 ) . await ;
671672 assert ! ( ready_txs( ) . is_empty( ) ) ;
672673}
0 commit comments