From: Matt Corallo Date: Tue, 26 Nov 2019 20:39:50 +0000 (-0500) Subject: Fix add_update_monitor check to unwrap() instead of an unused bool X-Git-Tag: v0.0.12~172^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=09b8c9e98b6c600658dddc62dbfbdba93ff28347;p=rust-lightning Fix add_update_monitor check to unwrap() instead of an unused bool --- diff --git a/lightning/src/ln/functional_tests.rs b/lightning/src/ln/functional_tests.rs index 83ca1e422..8c7684ecf 100644 --- a/lightning/src/ln/functional_tests.rs +++ b/lightning/src/ln/functional_tests.rs @@ -6139,7 +6139,7 @@ fn test_data_loss_protect() { channel_monitors: &channel_monitors }).unwrap().1; nodes[0].node = Arc::new(node_state_0); - monitor.add_update_monitor(OutPoint { txid: chan.3.txid(), index: 0 }, chan_monitor.clone()).is_ok(); + assert!(monitor.add_update_monitor(OutPoint { txid: chan.3.txid(), index: 0 }, chan_monitor.clone()).is_ok()); nodes[0].chan_monitor = monitor; nodes[0].chain_monitor = chain_monitor;