Merge pull request #1091 from TheBlueMatt/2021-09-997-winblowz
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Tue, 21 Sep 2021 22:34:00 +0000 (22:34 +0000)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 22:34:00 +0000 (22:34 +0000)
Fix windows-only test failure added in #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