Skip to content

Commit 784858a

Browse files
committed
f use time, not height, in sample constants in tests
1 parent 6348a93 commit 784858a

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
@@ -7490,7 +7490,7 @@ fn test_check_htlc_underpaying() {
74907490

74917491
let route = get_route(&nodes[0].node.get_our_node_id(), &nodes[0].net_graph_msg_handler.network_graph.read().unwrap(), &nodes[1].node.get_our_node_id(), Some(InvoiceFeatures::known()), None, &Vec::new(), 10_000, TEST_FINAL_CLTV, nodes[0].logger).unwrap();
74927492
let (_, our_payment_hash, _) = get_payment_preimage_hash!(nodes[0]);
7493-
let our_payment_secret = nodes[1].node.create_inbound_payment_for_hash(our_payment_hash, Some(100_000), 1008, 0).unwrap();
7493+
let our_payment_secret = nodes[1].node.create_inbound_payment_for_hash(our_payment_hash, Some(100_000), 7200, 0).unwrap();
74947494
nodes[0].node.send_payment(&route, our_payment_hash, &Some(our_payment_secret)).unwrap();
74957495
check_added_monitors!(nodes[0], 1);
74967496

0 commit comments

Comments
 (0)