File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -7819,16 +7819,15 @@ mod tests {
7819
7819
7820
7820
nodes[ 1 ] . node . handle_closing_signed ( & nodes[ 0 ] . node . get_our_node_id ( ) , & closing_signed_node_0. unwrap ( ) ) ;
7821
7821
{
7822
- // Assert that the channel is removed from both parties `id_to_peer` map once they both
7823
- // have everything required to fully close the channel.
7824
- assert_eq ! ( nodes[ 0 ] . node. id_to_peer. lock( ) . unwrap( ) . len( ) , 0 ) ;
7822
+ // Assert that the channel has now been removed from both parties `id_to_peer` map once
7823
+ // they both have everything required to fully close the channel.
7825
7824
assert_eq ! ( nodes[ 1 ] . node. id_to_peer. lock( ) . unwrap( ) . len( ) , 0 ) ;
7826
7825
}
7827
7826
let ( _nodes_1_update, _none) = get_closing_signed_broadcast ! ( nodes[ 1 ] . node, nodes[ 0 ] . node. get_our_node_id( ) ) ;
7828
7827
7829
7828
// Clear the `ChannelClosed` event for the nodes.
7830
- nodes[ 0 ] . node . get_and_clear_pending_events ( ) ;
7831
- nodes[ 1 ] . node . get_and_clear_pending_events ( ) ;
7829
+ get_event ! ( & nodes[ 0 ] , Event :: ChannelClosed ) ;
7830
+ get_event ! ( & nodes[ 1 ] , Event :: ChannelClosed ) ;
7832
7831
}
7833
7832
}
7834
7833
You can’t perform that action at this time.
0 commit comments