Fix add_update_monitor check to unwrap() instead of an unused bool 2019-11-cleanups
authorMatt Corallo <git@bluematt.me>
Tue, 26 Nov 2019 20:39:50 +0000 (15:39 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 28 Nov 2019 06:21:41 +0000 (01:21 -0500)
lightning/src/ln/functional_tests.rs

index 83ca1e422ec7104f1433fc28becdb30510d7c698..8c7684ecf0b12a59a08090cc4a3e985dfd8afced 100644 (file)
@@ -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;