Skip to content

Commit 9181eb2

Browse files
f - test fixups
1 parent 549c42f commit 9181eb2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7819,16 +7819,15 @@ mod tests {
78197819

78207820
nodes[1].node.handle_closing_signed(&nodes[0].node.get_our_node_id(), &closing_signed_node_0.unwrap());
78217821
{
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.
78257824
assert_eq!(nodes[1].node.id_to_peer.lock().unwrap().len(), 0);
78267825
}
78277826
let (_nodes_1_update, _none) = get_closing_signed_broadcast!(nodes[1].node, nodes[0].node.get_our_node_id());
78287827

78297828
// 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);
78327831
}
78337832
}
78347833

0 commit comments

Comments
 (0)