File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
polkadot/node/core/backing/src/tests Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -2213,25 +2213,27 @@ fn validator_ignores_statements_from_disabled_validators() {
22132213
22142214 // The next step is the actual request to Validation subsystem
22152215 // to validate the `Seconded` candidate.
2216+ let expected_pov = pov;
2217+ let expected_validation_code = validation_code;
22162218 assert_matches ! (
22172219 virtual_overseer. recv( ) . await ,
22182220 AllMessages :: CandidateValidation (
2219- CandidateValidationMessage :: ValidateFromExhaustive (
2220- _pvd ,
2221- _validation_code ,
2221+ CandidateValidationMessage :: ValidateFromExhaustive {
2222+ validation_data ,
2223+ validation_code ,
22222224 candidate_receipt,
2223- _pov ,
2224- _,
2225- timeout ,
2226- tx ,
2227- ) ,
2228- ) if _pvd == pvd &&
2229- _validation_code == validation_code &&
2230- * _pov == pov && & candidate_receipt. descriptor == candidate. descriptor( ) &&
2231- timeout == PvfExecTimeoutKind :: Backing &&
2225+ pov ,
2226+ executor_params : _,
2227+ exec_kind ,
2228+ response_sender ,
2229+ }
2230+ ) if validation_data == pvd &&
2231+ validation_code == expected_validation_code &&
2232+ * pov == expected_pov && & candidate_receipt. descriptor == candidate. descriptor( ) &&
2233+ exec_kind == PvfExecKind :: Backing &&
22322234 candidate_commitments_hash == candidate_receipt. commitments_hash =>
22332235 {
2234- tx . send( Ok (
2236+ response_sender . send( Ok (
22352237 ValidationResult :: Valid ( CandidateCommitments {
22362238 head_data: expected_head_data. clone( ) ,
22372239 upward_messages: Default :: default ( ) ,
You can’t perform that action at this time.
0 commit comments