Skip to content

Commit 09b8c9e

Browse files
committed
Fix add_update_monitor check to unwrap() instead of an unused bool
1 parent a62e96b commit 09b8c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6139,7 +6139,7 @@ fn test_data_loss_protect() {
61396139
channel_monitors: &channel_monitors
61406140
}).unwrap().1;
61416141
nodes[0].node = Arc::new(node_state_0);
6142-
monitor.add_update_monitor(OutPoint { txid: chan.3.txid(), index: 0 }, chan_monitor.clone()).is_ok();
6142+
assert!(monitor.add_update_monitor(OutPoint { txid: chan.3.txid(), index: 0 }, chan_monitor.clone()).is_ok());
61436143
nodes[0].chan_monitor = monitor;
61446144
nodes[0].chain_monitor = chain_monitor;
61456145

0 commit comments

Comments
 (0)