Skip to content

Commit e5a55da

Browse files
committed
f sp and additional test
1 parent 618dcdf commit e5a55da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ mod tests {
787787
#[test]
788788
fn test_async_ooo_offchain_updates() {
789789
// Test that if we have multiple offchain updates being persisted and they complete
790-
// out-of-order, the ChainMonitor waits until all have completed until informing the
790+
// out-of-order, the ChainMonitor waits until all have completed before informing the
791791
// ChannelManager.
792792
let chanmon_cfgs = create_chanmon_cfgs(2);
793793
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
@@ -815,10 +815,11 @@ mod tests {
815815
assert_eq!(updates.len(), 2);
816816

817817
// Note that updates is a HashMap so the ordering here is actually random. This shouldn't
818-
// fail either way but if it fails intermittently its depending on the ordering of updates.
818+
// fail either way but if it fails intermittently it's depending on the ordering of updates.
819819
let mut update_iter = updates.iter();
820820
nodes[1].chain_monitor.chain_monitor.channel_monitor_updated(*funding_txo, update_iter.next().unwrap().clone()).unwrap();
821821
assert!(nodes[1].chain_monitor.release_pending_monitor_events().is_empty());
822+
assert!(nodes[1].node.get_and_clear_pending_msg_events().is_empty());
822823
nodes[1].chain_monitor.chain_monitor.channel_monitor_updated(*funding_txo, update_iter.next().unwrap().clone()).unwrap();
823824

824825
// Now manually walk the commitment signed dance - because we claimed two payments

0 commit comments

Comments
 (0)