From: Matt Corallo Date: Tue, 21 Sep 2021 20:31:16 +0000 (+0000) Subject: Fix windows-only test failure added in #997 X-Git-Tag: v0.0.101~5^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a233780c7edad32a1f036b8893794fe2a181c75e;p=rust-lightning Fix windows-only test failure added in #997 This is a trivial bugfix to add a missing test updated required in PR 997. --- diff --git a/lightning-persister/src/lib.rs b/lightning-persister/src/lib.rs index e0a8fbb9a..6cfa540cf 100644 --- a/lightning-persister/src/lib.rs +++ b/lightning-persister/src/lib.rs @@ -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