File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -627,12 +627,16 @@ struct OperationReachabiilityStorage(
627
627
628
628
pub fn execute_operation ( request : OperationRequest ) {
629
629
let Some ( operator) = request. world . get :: < OperationExecuteStorage > ( request. source ) else {
630
- request. world . get_resource_or_insert_with ( || UnhandledErrors :: default ( ) )
631
- . broken
632
- . push ( Broken {
633
- node : request. source ,
634
- backtrace : Some ( Backtrace :: new ( ) )
635
- } ) ;
630
+ if request. world . get :: < UnusedTarget > ( request. source ) . is_none ( ) {
631
+ // The node does not have an operation and is not an unused target,
632
+ // so this is broken somehow.
633
+ request. world . get_resource_or_insert_with ( || UnhandledErrors :: default ( ) )
634
+ . broken
635
+ . push ( Broken {
636
+ node : request. source ,
637
+ backtrace : Some ( Backtrace :: new ( ) )
638
+ } ) ;
639
+ }
636
640
return ;
637
641
} ;
638
642
let operator = operator. 0 ;
Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ mod tests {
403
403
} ) ;
404
404
405
405
context. run_with_conditions ( & mut promise, Duration :: from_secs ( 2 ) ) ;
406
- dbg ! ( promise. peek( ) ) ;
407
406
assert ! ( promise. peek( ) . is_cancelled( ) ) ;
407
+ assert ! ( context. no_unhandled_errors( ) ) ;
408
408
}
409
409
}
You can’t perform that action at this time.
0 commit comments