Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
post merge test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed Jan 7, 2023
1 parent 142d852 commit 8632334
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtime/parachains/src/disputes/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,6 @@ mod unconfirmed_disputes {
});

let candidate_hash = CandidateHash(sp_core::H256::repeat_byte(1));
let inclusion_parent = sp_core::H256::repeat_byte(0xff);
let session = 3;

// v0 votes for 4, v1 votes against 4.
DisputeStatementSet {
Expand Down Expand Up @@ -966,6 +964,8 @@ fn test_provide_multi_dispute_success_and_other() {
});

let candidate_hash = CandidateHash(sp_core::H256::repeat_byte(1));
let inclusion_parent = sp_core::H256::repeat_byte(0xff);
let session = 3;

// v0 and v1 vote for 3, v6 votes against
let stmts = vec![DisputeStatementSet {
Expand Down Expand Up @@ -1324,7 +1324,7 @@ fn test_punish_post_conclusion() {
],
}];

let stmts = update_spam_slots(stmts);
let stmts = filter_dispute_set(stmts);
assert_ok!(
Pallet::<Test>::process_checked_multi_dispute_data(stmts),
vec![(3, candidate_hash)],
Expand Down Expand Up @@ -1392,7 +1392,7 @@ fn test_punish_post_conclusion() {
],
}];

let stmts = update_spam_slots(stmts);
let stmts = filter_dispute_set(stmts);
assert_ok!(Pallet::<Test>::process_checked_multi_dispute_data(stmts), vec![],);

assert_eq!(
Expand Down Expand Up @@ -1433,7 +1433,7 @@ fn test_punish_post_conclusion() {
],
}];

let stmts = update_spam_slots(stmts);
let stmts = filter_dispute_set(stmts);
assert_ok!(Pallet::<Test>::process_checked_multi_dispute_data(stmts), vec![],);

// Ensure punishment for is called
Expand Down

0 comments on commit 8632334

Please sign in to comment.