Fix windows-only test failure added in #997 2021-09-997-winblowz
authorMatt Corallo <git@bluematt.me>
Tue, 21 Sep 2021 20:31:16 +0000 (20:31 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 21 Sep 2021 21:16:51 +0000 (21:16 +0000)
This is a trivial bugfix to add a missing test updated required in
PR 997.

lightning-persister/src/lib.rs

index e0a8fbb9aab28d40f1d9ab9f01a02aa4823e8707..6cfa540cf1ec9c32a89a13bf1ba995e8dd3808f5 100644 (file)
@@ -330,6 +330,7 @@ mod tests {
                let nodes = create_network(2, &node_cfgs, &node_chanmgrs);
                let chan = create_announced_chan_between_nodes(&nodes, 0, 1, InitFeatures::known(), InitFeatures::known());
                nodes[1].node.force_close_channel(&chan.2).unwrap();
+               check_closed_event!(nodes[1], 1, ClosureReason::HolderForceClosed);
                let mut added_monitors = nodes[1].chain_monitor.added_monitors.lock().unwrap();
 
                // Create the persister with an invalid directory name and test that the