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

Commit

Permalink
Remove partitioning_malformed_onchain_data test as it is not relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed May 23, 2022
1 parent b7be63e commit 75f245a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions node/core/provisioner/src/disputes/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,28 +143,6 @@ fn partitioning_happy_case() {
);
}

#[test]
fn partitioning_malformed_onchain_data() {
let mut input = Vec::<(SessionIndex, CandidateHash, DisputeStatus)>::new();
let mut onchain = HashMap::<(u32, CandidateHash), DisputeState>::new();

let some_dispute = (3, CandidateHash(Hash::random()), DisputeStatus::ConcludedFor(0));
input.push(some_dispute.clone());
onchain.insert(
(some_dispute.0, some_dispute.1.clone()),
DisputeState {
validators_for: bitvec![u8, Lsb0; 1, 1, 1, 1, 1],
validators_against: bitvec![u8, Lsb0; 0, 0, 0, 0, 0, 0, 0, 0, 0],
start: 1,
concluded_at: None,
},
);

let result = partition_recent_disputes(input, &onchain);

assert_eq!(result.cant_conclude_onchain.len(), 1);
assert_eq!(result.cant_conclude_onchain.get(0).unwrap(), &(some_dispute.0, some_dispute.1));
}

#[test]
fn partitioning_doubled_onchain_vote() {
Expand Down

0 comments on commit 75f245a

Please sign in to comment.