@@ -4234,8 +4234,11 @@ fn ambiguous_candidate_rejected_on_second() {
42344234
42354235 virtual_overseer. send ( FromOrchestra :: Communication { msg : second } ) . await ;
42364236
4237- // The candidate should be silently rejected — no validation work issued.
4238- assert_matches ! ( virtual_overseer. recv( ) . timeout( Duration :: from_secs( 1 ) ) . await , None ) ;
4237+ // The candidate should be rejected and reported as invalid to collator protocol.
4238+ assert_matches ! (
4239+ virtual_overseer. recv( ) . await ,
4240+ AllMessages :: CollatorProtocol ( CollatorProtocolMessage :: Invalid ( _, _) )
4241+ ) ;
42394242
42404243 virtual_overseer
42414244 } ) ;
@@ -4408,7 +4411,10 @@ fn version_acceptance_before_and_after_v3_activation_on_second() {
44084411 } ,
44094412 } )
44104413 . await ;
4411- assert_matches ! ( virtual_overseer. recv( ) . timeout( Duration :: from_secs( 1 ) ) . await , None ) ;
4414+ assert_matches ! (
4415+ virtual_overseer. recv( ) . await ,
4416+ AllMessages :: CollatorProtocol ( CollatorProtocolMessage :: Invalid ( _, _) )
4417+ ) ;
44124418
44134419 // 2. V3 candidate: rejected (V3NotEnabled).
44144420 let v3_candidate = CommittedCandidateReceipt {
@@ -4440,7 +4446,10 @@ fn version_acceptance_before_and_after_v3_activation_on_second() {
44404446 } ,
44414447 } )
44424448 . await ;
4443- assert_matches ! ( virtual_overseer. recv( ) . timeout( Duration :: from_secs( 1 ) ) . await , None ) ;
4449+ assert_matches ! (
4450+ virtual_overseer. recv( ) . await ,
4451+ AllMessages :: CollatorProtocol ( CollatorProtocolMessage :: Invalid ( _, _) )
4452+ ) ;
44444453
44454454 // --- Activate V3 ---
44464455 activate_v3_via_block_finalized ( & mut virtual_overseer) . await ;
@@ -4458,7 +4467,10 @@ fn version_acceptance_before_and_after_v3_activation_on_second() {
44584467 } ,
44594468 } )
44604469 . await ;
4461- assert_matches ! ( virtual_overseer. recv( ) . timeout( Duration :: from_secs( 1 ) ) . await , None ) ;
4470+ assert_matches ! (
4471+ virtual_overseer. recv( ) . await ,
4472+ AllMessages :: CollatorProtocol ( CollatorProtocolMessage :: Invalid ( _, _) )
4473+ ) ;
44624474
44634475 // 4. V3 candidate: NOW ACCEPTED — passes check_version_acceptance.
44644476 // It proceeds past the version check into the normal seconding flow.
0 commit comments