core-lightning/tests
trueptolemy 77f98f8a5c test_pay: Add test_forward_local_failed_stats() in 5 cases
Here I add the test for this 5 local_failed case in this commit.
There 5 cases for FORWARD_LOCAL_FAILED status:
    1. When Msater resolves the reply about the next peer infor(sent by Gossipd), and need handle unknown next peer failure in channel_resolve_reply();
    2. When Master handle the forward process with the htlc_in and the id of next hop, it tries to drive a new htlc_out but fails in forward_htlc();
    3. When we send htlc_out, Master asks Channeld to add a new htlc into the outgoing channel but Channeld fails. Master need handle and store this failure in rcvd_htlc_reply();
    4. When Channeld receives a new revoke message, if the state of corresponding htlc is RCVD_ADD_ACK_REVOCATION, Master will tries to resolve onionpacket and handle the failure before resolving the next hop in peer_got_revoke();
    5. When Onchaind finds the htlc time out or missing htlc, Master need handle these failure as FORWARD_LOCAL_FAILED in if it's forward payment case.
2019-05-03 11:45:57 +02:00
..
data pytest: test starting with db corrupted by dangling peer. 2019-02-21 12:03:54 +01:00
plugins invoice_hook: remove nested result. 2019-04-23 15:26:42 +02:00
benchmark.py py-tests: rename 'announce' to 'wait_for_announce' 2018-12-08 15:15:55 -08:00
btcproxy.py pytest: create proper mock failures. 2019-01-29 04:50:01 +00:00
conftest.py pytest: Pass result to fixtures and keep directories of failed tests 2018-08-07 00:54:19 +00:00
fixtures.py pytest: Make directory cleanup robust against setup failures 2019-04-30 17:56:09 -05:00
requirements.txt pytest: Update test dependencies to latest version 2019-01-29 00:50:09 +00:00
test_closing.py pytest: add dev hack for testing option_upfront_shutdown_script. 2019-05-02 01:18:33 +00:00
test_connection.py openingd: support receipt of upfront_shutdown_script. 2019-05-02 01:18:33 +00:00
test_db.py db: fix dangling peers on db upgrade. 2019-02-21 12:03:54 +01:00
test_gossip.py patch refine-test_gossip_persistence.patch 2019-04-11 18:31:34 -07:00
test_invoices.py test: make routeboost_private use higher capacity 2019-04-16 15:01:28 -07:00
test_misc.py wallet: Clamp maxheight to positive number for large minconf 2019-04-30 17:52:52 -05:00
test_pay.py test_pay: Add test_forward_local_failed_stats() in 5 cases 2019-05-03 11:45:57 +02:00
test_plugin.py pytest: Fix the flaky test_plugin_connected_hook test 2019-04-30 17:56:09 -05:00
utils.py newaddr: deprecate 'address' output. 2019-03-04 15:11:20 +01:00