From 09b8c9e98b6c600658dddc62dbfbdba93ff28347 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 26 Nov 2019 15:39:50 -0500 Subject: [PATCH] Fix add_update_monitor check to unwrap() instead of an unused bool --- lightning/src/ln/functional_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5