From 90c1dcd46316b5939c7d6e89176b2afb79281cf6 Mon Sep 17 00:00:00 2001 From: Tsvetomir Dimitrov Date: Mon, 23 May 2022 18:05:57 +0300 Subject: [PATCH] Remove `partitioning_malformed_onchain_data` test as it is not relevant --- node/core/provisioner/src/disputes/tests.rs | 23 --------------------- 1 file changed, 23 deletions(-) diff --git a/node/core/provisioner/src/disputes/tests.rs b/node/core/provisioner/src/disputes/tests.rs index 0fffe136cf6b..bd59eb0986b8 100644 --- a/node/core/provisioner/src/disputes/tests.rs +++ b/node/core/provisioner/src/disputes/tests.rs @@ -143,29 +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() { let mut input = Vec::<(SessionIndex, CandidateHash, DisputeStatus)>::new();