Merge pull request #543 from TheBlueMatt/2020-03-513-warning
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Mon, 16 Mar 2020 20:23:37 +0000 (20:23 +0000)
committerGitHub <noreply@github.com>
Mon, 16 Mar 2020 20:23:37 +0000 (20:23 +0000)
Add missing unwrap() in tests introduced in 4abfd515e554bef90c25dbe

lightning/src/ln/functional_tests.rs

index d12de937e54cfe93cd3b8b7cc1f9a2134ac646ad..703c593fb29ec9e0bafb1a14d25bc5f8e8c2d62f 100644 (file)
@@ -5543,7 +5543,7 @@ fn test_update_add_htlc_bolt2_receiver_zero_value_msat() {
        let route = nodes[0].router.get_route(&nodes[1].node.get_our_node_id(), None, &[], 100000, TEST_FINAL_CLTV).unwrap();
        let (_, our_payment_hash) = get_payment_preimage_hash!(nodes[0]);
 
-       nodes[0].node.send_payment(route, our_payment_hash);
+       nodes[0].node.send_payment(route, our_payment_hash).unwrap();
        check_added_monitors!(nodes[0], 1);
        let mut updates = get_htlc_update_msgs!(nodes[0], nodes[1].node.get_our_node_id());
        updates.update_add_htlcs[0].amount_msat = 0;