Commit 0c5fa1b5 authored by Bastian Köcher's avatar Bastian Köcher
Browse files

Fix test

parent 11fce278
Pipeline #113025 failed with stages
in 7 minutes and 7 seconds
...@@ -180,7 +180,7 @@ mod tests { ...@@ -180,7 +180,7 @@ mod tests {
ValidatorId, ValidatorIndex, GroupRotationInfo, CoreState, PersistedValidationData, ValidatorId, ValidatorIndex, GroupRotationInfo, CoreState, PersistedValidationData,
Id as ParaId, OccupiedCoreAssumption, ValidationData, SessionIndex, ValidationCode, Id as ParaId, OccupiedCoreAssumption, ValidationData, SessionIndex, ValidationCode,
CommittedCandidateReceipt, CandidateEvent, AuthorityDiscoveryId, InboundDownwardMessage, CommittedCandidateReceipt, CandidateEvent, AuthorityDiscoveryId, InboundDownwardMessage,
BlockNumber, BlockNumber, CheckValidationOutputsError,
}; };
use polkadot_node_subsystem_test_helpers as test_helpers; use polkadot_node_subsystem_test_helpers as test_helpers;
use sp_core::testing::TaskExecutor; use sp_core::testing::TaskExecutor;
...@@ -197,7 +197,7 @@ mod tests { ...@@ -197,7 +197,7 @@ mod tests {
session_index_for_child: SessionIndex, session_index_for_child: SessionIndex,
validation_code: HashMap<ParaId, ValidationCode>, validation_code: HashMap<ParaId, ValidationCode>,
historical_validation_code: HashMap<ParaId, Vec<(BlockNumber, ValidationCode)>>, historical_validation_code: HashMap<ParaId, Vec<(BlockNumber, ValidationCode)>>,
validation_outputs_results: HashMap<ParaId, bool>, validation_outputs_results: HashMap<ParaId, Result<(), CheckValidationOutputsError>>,
candidate_pending_availability: HashMap<ParaId, CommittedCandidateReceipt>, candidate_pending_availability: HashMap<ParaId, CommittedCandidateReceipt>,
candidate_events: Vec<CandidateEvent>, candidate_events: Vec<CandidateEvent>,
dmq_contents: HashMap<ParaId, Vec<InboundDownwardMessage>>, dmq_contents: HashMap<ParaId, Vec<InboundDownwardMessage>>,
...@@ -254,7 +254,7 @@ mod tests { ...@@ -254,7 +254,7 @@ mod tests {
&self, &self,
para_id: ParaId, para_id: ParaId,
_commitments: polkadot_primitives::v1::ValidationOutputs, _commitments: polkadot_primitives::v1::ValidationOutputs,
) -> bool { ) -> Result<(), CheckValidationOutputsError> {
self.validation_outputs_results self.validation_outputs_results
.get(&para_id) .get(&para_id)
.cloned() .cloned()
...@@ -470,8 +470,8 @@ mod tests { ...@@ -470,8 +470,8 @@ mod tests {
let para_b = 6.into(); let para_b = 6.into();
let commitments = polkadot_primitives::v1::ValidationOutputs::default(); let commitments = polkadot_primitives::v1::ValidationOutputs::default();
runtime_api.validation_outputs_results.insert(para_a, false); runtime_api.validation_outputs_results.insert(para_a, Err(CheckValidationOutputsError::HeadDataTooLarge));
runtime_api.validation_outputs_results.insert(para_b, true); runtime_api.validation_outputs_results.insert(para_b, Ok(()));
let runtime_api = Arc::new(runtime_api); let runtime_api = Arc::new(runtime_api);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment