rgb-cln/tests
Rusty Russell d2e7831d87 pytest: fix flake in test_upgrade_statickey_onchaind
We need to make sure l1 has closed previous channel:

```
wait_for(lambda: only_one(l1.rpc.listpeerchannels()['channels'])['state'] == 'CHANNELD_NORMAL')

tests/test_connection.py:3866: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
contrib/pyln-testing/pyln/testing/utils.py:88: in wait_for
    while not success():
tests/test_connection.py:3866: in <lambda>
    wait_for(lambda: only_one(l1.rpc.listpeerchannels()['channels'])['state'] == 'CHANNELD_NORMAL')
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

arr = [{'alias': {'local': '7000028x5013088x54781', 'remote': '3360520x6431919x56666'}, 'channel_id': 'fb198b27b1be882937eea...: ['static_remotekey/even']}, 'close_to': '5120888ab14b6e1655d1d00039b836d70b66e3351543ab6cd2f94166255f3d5e6cb5', ...}]

    def only_one(arr):
        """Many JSON RPC calls return an array; often we only expect a single entry
        """
>       assert len(arr) == 1
E       AssertionError
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-01-31 13:39:23 +10:30
..
data db: migrate old runes table to fix up id fields. 2023-08-31 05:33:15 +09:30
fuzz fuzz: initial fuzz-bolt12-invoice-decode corpus 2024-01-23 20:21:48 +10:30
plugins libplugin: support version strings for deprecations. 2024-01-26 10:30:22 +10:30
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 pytest: use --developer instead of environment variable. 2023-09-21 20:08:24 +09:30
fixtures.py pytest: use --developer instead of environment variable. 2023-09-21 20:08:24 +09:30
rkls_github_canned_server.py pytest: add blackbox tests for reckless 2023-04-09 12:41:11 +09:30
test_bookkeeper.py pyln: Consolidate on pyln.testing.db 2024-01-29 19:13:12 +01:00
test_cln_rs.py lightningd: remove msatoshi alias for amount_msat. 2024-01-26 10:30:22 +10:30
test_clnrest.py lightningd: don't print out notification msat fields as strings. 2023-11-21 08:23:39 +01:00
test_closing.py pytest: make sure gossipd sees channel before we close it. 2024-01-31 09:15:46 +10:30
test_connection.py pytest: fix flake in test_upgrade_statickey_onchaind 2024-01-31 13:39:23 +10:30
test_db.py pytest: fix psbt db test. 2024-01-31 09:15:46 +10:30
test_gossip.py pytest: test_gossip_pruning should not assume redundant node_announcement. 2024-01-31 09:15:46 +10:30
test_invoices.py pytest: note where we use very deprecated features, so tests don't rbeak. 2024-01-26 10:30:22 +10:30
test_misc.py pytest: check for short_channel_id, not status. 2024-01-31 09:15:46 +10:30
test_mkfunding.py pytest: add tests for devtools/mkfunding 2023-01-09 14:50:30 -06:00
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py pytest: fix up test_zeroconf_multichan_forward once routehints fixed. 2024-01-31 09:15:46 +10:30
test_pay.py bkpr: dont log unknown accounts with zero balances 2024-01-29 10:05:03 +10:30
test_plugin.py pytest: prepare sql test for faster gossip generation. 2024-01-31 09:15:46 +10:30
test_reckless.py pytest: add reckless local install test 2023-07-27 06:53:49 +09:30
test_renepay.py renepay: accomodate fees in the payment flow 2024-01-29 10:48:24 +10:30
test_runes.py pytest: correctly test missing method for runes. 2023-10-17 14:58:40 +10:30
test_splicing.py pytest: fix splicing tests to be more explicit, and not rely in private gossip messages. 2024-01-31 09:15:46 +10:30
test_splicing_disconnect.py pytest: fix splicing tests to be more explicit, and not rely in private gossip messages. 2024-01-31 09:15:46 +10:30
test_splicing_insane.py splice: Agressive restart testing during splices 2023-12-15 09:42:45 +10:30
test_wallet.py addpsbtoutput: allow command to specify output address. 2023-11-01 14:11:28 +10:30
utils.py lightningd: make option_static_remotekey compulsory. 2024-01-29 13:40:34 +10:30
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30