core-lightning/tests
Rusty Russell 695f001161 pytest: fix flake in test_zeroconf_forward
Second pay can fail if first is not completely settled:

```
    def test_zeroconf_forward(node_factory, bitcoind):
        """Ensure that we can use zeroconf channels in forwards.

...
        # Make sure (esp in non-dev-mode) blockheights agree so we don't WIRE_EXPIRY_TOO_SOON...
        sync_blockheight(bitcoind, [l1, l2, l3])
        inv = l3.rpc.invoice(42 * 10**6, 'inv1', 'desc')['bolt11']
        l1.rpc.pay(inv)

        # And now try the other way around: zeroconf channel first
        # followed by a public one.
        wait_for(lambda: len(l3.rpc.listchannels()['channels']) == 4)
        inv = l1.rpc.invoice(42, 'back1', 'desc')['bolt11']
>       l3.rpc.pay(inv)

...
>           raise RpcError(method, payload, resp['error'])
E           pyln.client.lightning.RpcError: RPC call failed: method: pay, payload: {'bolt11': 'lnbcrt420p1p3junrssp588gtjzmlrr4pfj7ssmdlulzhhushrpq3rdqxjuz2m33scsvzdjlspp5fk5yhu6netc0d0sgp8es52vjk6akhd3uayr08u8max4d8rwzpjuqdq8v3jhxccxqyjw5qcqp99qyysgqcpyyugejv4nya97v6gw8fhtr0ru3vq87jjlltav99wlat436a95n0z8yzdp699p9md0zz9tmnsjpvfj622n9g9fh7r6ldhpgh9wmr4qpcru3rk'}, error: {'code': 210, 'message': 'Destination 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518 is not reachable directly and all routehints were unusable.', 'attempts': [{'status': 'failed', 'failreason': 'Destination 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518 is not reachable directly and all routehints were unusable.', 'partid': 0, 'amount_msat': 42msat}]}
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-09-27 13:14:20 +02:00
..
data pytest: add test for migrations upgrade which breaks 'fees_collected_msat'. 2022-09-27 14:42:03 +09:30
fuzz fuzz: fix fuzzing compilation. 2022-07-25 08:08:32 -07:00
plugins lightningd: figure out optimal channel *before* forward_htlc hook. 2022-09-26 13:52:04 +02:00
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py tests: add marker for v1/v2 channel opens 2021-05-12 11:25:41 +09:30
db.py test-db-provider: if postgres in tests, startup a bookkeeper db 2022-07-28 12:08:18 +09:30
fixtures.py test-db-provider: if postgres in tests, startup a bookkeeper db 2022-07-28 12:08:18 +09:30
test_bookkeeper.py bkpr-test: maybe fix race in test_bookkeeping_closing_trimmed_htlcs 2022-09-14 15:59:37 +09:30
test_cln_rs.py pytest: Move generated grpc bindings to pyln-testing 2022-07-21 14:19:06 +09:30
test_closing.py pytest: fix flake in test_onchain_different_fees 2022-09-23 14:40:16 -05:00
test_connection.py channeld: send error, not warning, if peer has old commitment number. 2022-09-26 11:36:09 +02:00
test_db.py delforward: allow deletion of "unknown in_htlc_id" and fix autoclean to use it. 2022-09-27 14:42:03 +09:30
test_gossip.py gossipd: don't close non-local channels immediately, add 12 block delay. 2022-09-24 15:22:27 +09:30
test_invoices.py gossipd: don't close non-local channels immediately, add 12 block delay. 2022-09-24 15:22:27 +09:30
test_misc.py lightningd: add delforward command. 2022-09-22 15:19:46 +02:00
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py pytest: fix flake in test_zeroconf_forward 2022-09-27 13:14:20 +02:00
test_pay.py pytest: fix flake in test_pay_disconnect 2022-09-23 14:40:16 -05:00
test_plugin.py delforward: tally up deleted forwards so that getinfo's fees_collected_msat doesn't change. 2022-09-27 14:42:03 +09:30
test_wallet.py lightningd: don't log JSON ids as debug, use log io. 2022-09-16 12:31:45 +09:30
utils.py db: add scid field to channels table. 2022-09-22 15:19:46 +02:00
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30