Skip to content

Commit 804aec9

Browse files
committed
f
1 parent 0451193 commit 804aec9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lightning/src/ln/shutdown_tests.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,14 +1436,15 @@ fn batch_funding_failure() {
14361436
assert!(msgs.iter().any(|msg| {
14371437
if let MessageSendEvent::HandleError { action: msgs::ErrorAction::SendErrorMessage {
14381438
msg: msgs::ErrorMessage { channel_id, .. }, ..
1439-
}, .. } = msgs[1] {
1440-
assert_eq!(channel_id, temp_chan_id_b);
1439+
}, .. } = msg {
1440+
assert_eq!(*channel_id, temp_chan_id_b);
14411441
true
14421442
} else { false }
14431443
}));
14441444
assert!(msgs.iter().any(|msg| {
1445-
if let MessageSendEvent::SendFundingCreated { msg: msgs::FundingCreated { temporary_channel_id, .. }, .. } = msgs[0] {
1446-
temporary_channel_id == temp_chan_id_a
1445+
if let MessageSendEvent::SendFundingCreated { msg: msgs::FundingCreated { temporary_channel_id, .. }, .. } = msg {
1446+
assert_eq!(*temporary_channel_id, temp_chan_id_a);
1447+
true
14471448
} else { false }
14481449
}));
14491450

0 commit comments

Comments
 (0)