Skip to content

Commit

Permalink
Make test compile on this old version
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Gheorghe <[email protected]>
  • Loading branch information
alexggh committed Dec 10, 2024
1 parent e295d90 commit f3c8edb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions polkadot/node/core/approval-voting/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4645,7 +4645,7 @@ async fn build_chain_with_block_with_two_candidates(
async fn setup_overseer_with_blocks_with_two_assignments_triggered(
virtual_overseer: &mut VirtualOverseer,
store: TestStore,
clock: &Arc<MockClock>,
clock: &Box<MockClock>,
sync_oracle_handle: TestSyncOracleHandle,
) {
assert_matches!(
Expand All @@ -4657,13 +4657,13 @@ async fn setup_overseer_with_blocks_with_two_assignments_triggered(

let block_hash = Hash::repeat_byte(0x01);
let candidate_commitments = CandidateCommitments::default();
let mut candidate_receipt = dummy_candidate_receipt_v2(block_hash);
let mut candidate_receipt = dummy_candidate_receipt(block_hash);
candidate_receipt.commitments_hash = candidate_commitments.hash();
let candidate_hash = candidate_receipt.hash();

let mut candidate_commitments2 = CandidateCommitments::default();
candidate_commitments2.processed_downward_messages = 3;
let mut candidate_receipt2 = dummy_candidate_receipt_v2(block_hash);
let mut candidate_receipt2 = dummy_candidate_receipt(block_hash);
candidate_receipt2.commitments_hash = candidate_commitments2.hash();
let candidate_hash2 = candidate_receipt2.hash();

Expand Down Expand Up @@ -5308,12 +5308,12 @@ fn subsystem_sends_assignment_approval_in_correct_order_on_approval_restart() {

let block_hash = Hash::repeat_byte(0x01);
let candidate_commitments = CandidateCommitments::default();
let mut candidate_receipt = dummy_candidate_receipt_v2(block_hash);
let mut candidate_receipt = dummy_candidate_receipt(block_hash);
candidate_receipt.commitments_hash = candidate_commitments.hash();

let mut candidate_commitments2 = CandidateCommitments::default();
candidate_commitments2.processed_downward_messages = 3;
let mut candidate_receipt2 = dummy_candidate_receipt_v2(block_hash);
let mut candidate_receipt2 = dummy_candidate_receipt(block_hash);
candidate_receipt2.commitments_hash = candidate_commitments2.hash();

let slot = Slot::from(1);
Expand Down

0 comments on commit f3c8edb

Please sign in to comment.