cln/tests
daywalker90 d1603a028c tests: fix test_bwatch_spk_watch_reorg_demotes_outputs flake
We need to wait for bwatch to see the deposit block or it won't see a
reorg.

```
        assert l1.db_query('SELECT COUNT(*) AS c FROM outputs')[0]['c'] == 1

        # Reorg the deposit block away.  Deprioritize the returned mempool tx
        # (same trick as simple_reorg) so the replacement blocks don't just
        # re-confirm it.
        bitcoind.rpc.invalidateblock(bitcoind.rpc.getblockhash(deposit_height))
        memp = bitcoind.rpc.getrawmempool()
        assert txid in memp
        for t in memp:
            bitcoind.rpc.prioritisetransaction(t, None, -1000000)
        bitcoind.generate_block(2)

>       l1.daemon.wait_for_log(r'Reorg detected', timeout=60)
```

Changelog-None
2026-08-11 13:31:07 +02:00
..
data doc: generate all examples with newchain 2026-07-13 18:15:06 -07:00
fuzz wire/splice: rename messages and TLV fields per updated BOLTs 2026-06-19 09:38:06 +09:30
plugins tests: drop obsolete x-prefix in compacter-slow.sh 2026-08-06 09:21:54 +02:00
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
__init__.py feat: add pytest config 2025-08-11 11:06:22 +09:30
autogenerate-rpc-examples.py tests: fix flaky listchannels doc example by waiting for l3 to disable its l4 channel 2026-07-20 13:27:36 +02:00
benchmark.py pay: deprecate pay and paystatus. 2026-05-11 13:51:52 +09:30
conftest.py feat: Enhance JUnit XML reporting with environment variables and add import to conftest.py 2026-02-02 11:41:09 +01:00
fixtures.py pytest: don't invoke the pcap test every session. 2026-02-28 18:52:19 +10:30
pytest.ini feat: add pytest config 2025-08-11 11:06:22 +09:30
rkls_github_canned_server.py fix: replace deprecated flask.escape with markupsafe.escape 2025-08-11 11:06:22 +09:30
test_askrene.py askrene: test explain: fix flake 2026-08-04 18:51:43 -03:00
test_bookkeeper.py tests: fixing flake8 + fixed fees in spliceout 2026-07-15 16:12:11 +02:00
test_cln_lsps.py msggen: new rust types for sat and sat_or_all 2026-07-17 10:16:18 +02:00
test_cln_rs.py cln-plugin: include the full error chain when given a context 2026-07-06 19:25:22 +02:00
test_clnrest.py clnrest: add clnrest-register-path method for dynamic paths 2026-01-19 12:55:57 +10:30
test_closing.py tests: fix flaky test_simple_close_dust_output_omitted mempool race 2026-07-21 10:45:43 +02:00
test_coinmoves.py pytest: changed old_hsmsecret to default to false. 2026-01-27 09:32:49 +10:30
test_connection.py tests: query our_outputs in test_connection.py 2026-07-28 09:30:11 +10:00
test_currencyrate.py currencyrate: propagate http errors to currencyrate rpc if a source is provided 2026-06-10 14:26:41 +02:00
test_db.py tests: add our_tables backfill upgrade test 2026-07-28 09:30:11 +10:00
test_downgrade.py add a test for downgrading askrene datastore 2026-08-04 18:51:43 -03:00
test_gossip.py connectd/tests: fix test_announce_and_connect_via_dns on macOS 2026-07-03 09:35:30 -03:00
test_invoices.py lightningd: internal cleanups since all non-command JSON IDs are strings. 2026-08-04 18:51:43 -03:00
test_misc.py libplugins: JSON ids are always strings. 2026-08-04 18:51:43 -03:00
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 lightningd: don't try to re-xmit funding tx for already-confirmed channels. 2026-06-22 12:04:19 +09:30
test_p2tr_change_dust.py bitcoin/tx.c: use 330 sat dust limit for P2TR/P2WPKH change outputs Fixes #8395 2026-05-08 21:08:41 +09:30
test_pay.py fetchinvoice: handle weird labels in recurrence_label parameter. 2026-08-04 18:51:43 -03:00
test_plugin.py tests: fix test_bwatch_spk_watch_reorg_demotes_outputs flake 2026-08-11 13:31:07 +02:00
test_reckless.py tests: fix flaky reckless tests by waiting for the canned github server 2026-07-17 18:07:54 +02:00
test_renepay.py renepay: fix CLTV value for the first hop 2026-07-18 13:09:45 +02:00
test_restart.py splice: Remove experiemental splicing feature 2026-04-09 11:04:42 +09:30
test_runes.py pytest: changed old_hsmsecret to default to false. 2026-01-27 09:32:49 +10:30
test_splice.py splice: Make feerate opening + feerate_offset 2026-05-11 15:54:37 +09:30
test_splicing.py Revert "Bolt quote updates and improvements" 2026-06-18 13:22:14 +09:30
test_splicing_disconnect.py splice: Make feerate opening + feerate_offset 2026-05-11 15:54:37 +09:30
test_splicing_insane.py splice: Make feerate opening + feerate_offset 2026-05-11 15:54:37 +09:30
test_wallet.py lightningd: internal cleanups since all non-command JSON IDs are strings. 2026-08-04 18:51:43 -03:00
test_xpay.py xpay: tests should expect the new error messages 2026-08-04 18:51:43 -03:00
utils.py splice: Remove experiemental splicing feature 2026-04-09 11:04:42 +09:30
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30