Skip to content

Commit 97680c1

Browse files
committed
resolving test error
1 parent 9ba9d34 commit 97680c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/async_signer_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,13 @@ fn do_test_async_holder_signatures(anchors: bool, remote_commitment: bool) {
363363
// Route an HTLC and set the signer as unavailable.
364364
let (_, _, chan_id, funding_tx) = create_announced_chan_between_nodes(&nodes, 0, 1);
365365
route_payment(&nodes[0], &[&nodes[1]], 1_000_000);
366+
let error_message = "Channel force-closed";
366367

367368
nodes[0].set_channel_signer_available(&nodes[1].node.get_our_node_id(), &chan_id, false);
368369

369370
if remote_commitment {
370371
// Make the counterparty broadcast its latest commitment.
371-
nodes[1].node.force_close_broadcasting_latest_txn(&chan_id, &nodes[0].node.get_our_node_id()).unwrap();
372+
nodes[1].node.force_close_broadcasting_latest_txn(&chan_id, &nodes[0].node.get_our_node_id(), error_message.to_string()).unwrap();
372373
check_added_monitors(&nodes[1], 1);
373374
check_closed_broadcast(&nodes[1], 1, true);
374375
check_closed_event(&nodes[1], 1, ClosureReason::HolderForceClosed, false, &[nodes[0].node.get_our_node_id()], 100_000);

0 commit comments

Comments
 (0)