File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1436,14 +1436,15 @@ fn batch_funding_failure() {
1436
1436
assert ! ( msgs. iter( ) . any( |msg| {
1437
1437
if let MessageSendEvent :: HandleError { action: msgs:: ErrorAction :: SendErrorMessage {
1438
1438
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) ;
1441
1441
true
1442
1442
} else { false }
1443
1443
} ) ) ;
1444
1444
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
1447
1448
} else { false }
1448
1449
} ) ) ;
1449
1450
You can’t perform that action at this time.
0 commit comments