Skip to content

Commit 07c0345

Browse files
committed
Fix test to expect channel update for channel_disabled onion error
1 parent fad983e commit 07c0345

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ln/channelmanager.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4874,10 +4874,7 @@ mod tests {
48744874
_ => panic!("Unexpected event"),
48754875
};
48764876
match msg_events[1] {
4877-
MessageSendEvent::PaymentFailureNetworkUpdate { update: msgs::HTLCFailChannelUpdate::NodeFailure { ref node_id, ref is_permanent }} => {
4878-
assert!(is_permanent);
4879-
assert_eq!(*node_id, nodes[1].node.get_our_node_id());
4880-
},
4877+
MessageSendEvent::PaymentFailureNetworkUpdate { update: msgs::HTLCFailChannelUpdate::ChannelUpdateMessage { .. }} => {},
48814878
_ => panic!("Unexpected event"),
48824879
}
48834880

0 commit comments

Comments
 (0)