projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d6b1825
)
Add missing unwrap() in tests introduced in 4abfd515e554bef90c25dbe
2020-03-513-warning
author
Matt Corallo
<git@bluematt.me>
Wed, 11 Mar 2020 20:10:01 +0000
(16:10 -0400)
committer
Matt Corallo
<git@bluematt.me>
Wed, 11 Mar 2020 20:10:01 +0000
(16:10 -0400)
lightning/src/ln/functional_tests.rs
patch
|
blob
|
history
diff --git
a/lightning/src/ln/functional_tests.rs
b/lightning/src/ln/functional_tests.rs
index d12de937e54cfe93cd3b8b7cc1f9a2134ac646ad..703c593fb29ec9e0bafb1a14d25bc5f8e8c2d62f 100644
(file)
--- a/
lightning/src/ln/functional_tests.rs
+++ b/
lightning/src/ln/functional_tests.rs
@@
-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]);
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;
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;