cln/tests
Rusty Russell a12c02b1d0 pytest: fix race in test_zeroconf_forget
fundwallet() actually mines a block, putting our count out.  If we see
both blocks at once, we will say "52" blocks instead of "51":

```
2025-05-02T05:28:40.5315155Z         have_forgotten = l2.daemon.is_in_log(
2025-05-02T05:28:40.5315650Z             r"UNUSUAL {}-chan#1: Forgetting channel: It has been 51 blocks without the funding transaction ".format(l1.info['id'])
2025-05-02T05:28:40.5316105Z         )
2025-05-02T05:28:40.5316263Z     
2025-05-02T05:28:40.5316417Z         if dopay:
2025-05-02T05:28:40.5316616Z             assert not have_forgotten
2025-05-02T05:28:40.5317056Z             assert set([c['peer_id'] for c in l2.rpc.listpeerchannels()["channels"]]) == set([l1.info['id'], l3.info['id']])
2025-05-02T05:28:40.5317477Z         else:
2025-05-02T05:28:40.5317662Z >           assert have_forgotten
2025-05-02T05:28:40.5317887Z E           assert None
```

```
0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: Forgetting channel: It has been 52 blocks without the funding transaction 0bb0579df6b1d983dda49dad47513afc71696c9d5bea3c8b955ba4b76bb053de getting deeply confirmed. We are fundee and can forget channel without loss of funds.
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-05-02 13:25:11 -07:00
..
data pytest: generate broken db examples now, before we fix them. 2025-04-02 11:22:54 +10:30
fuzz fuzz: don't fail when fuzzer generates valid Act 1 or 2 packets 2025-04-15 19:53:47 +09:30
plugins channeld: remove never-used "reestablish_only" option. 2025-04-29 13:31:23 +09:30
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
autogenerate-rpc-examples.py lightningd: support index/start/end pagination for listhtlcs. 2025-04-29 09:38:20 +09: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: don't add bookeeper-db option if bookkeeper is disabled. 2025-02-24 19:38:37 +10:30
rkls_github_canned_server.py pytest: add blackbox tests for reckless 2023-04-09 12:41:11 +09:30
test_askrene.py askrene: remove all small channels if there's no MPP support. 2025-02-14 22:17:21 +10:30
test_bookkeeper.py pytest: don't set experimental-offers in tests: it's the default now. 2024-11-18 10:42:54 +01:00
test_cln_rs.py cln-grpc, clnrest: workaround for logging before shutdown 2025-02-14 14:58:00 -06:00
test_clnrest.py pytest: add override options to prepare for default removal of rest-port/rest-host options. 2025-02-13 21:15:45 -06:00
test_closing.py CI: fix flake in test_penalty_htlc_tx_timeout 2025-05-02 13:25:11 -07:00
test_connection.py pytest: fix CI hang. 2025-05-02 12:15:18 +09:30
test_db.py pytest: adapt tests to avoid deprecated APIs in close (tx and txid). 2024-11-17 16:04:06 +10:30
test_gossip.py common: fix crash when we have a localmod with unrepresentable fee values. 2025-04-01 16:33:23 +10:30
test_invoices.py lightningd: improve wait API by making details fields per-subsystem. 2025-04-29 09:38:20 +09:30
test_misc.py pytest: fix flake in test_setconfig_access. 2025-05-02 13:25:11 -07: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 pytest: fix race in test_zeroconf_forget 2025-05-02 13:25:11 -07:00
test_pay.py lightningd: improve wait API by making details fields per-subsystem. 2025-04-29 09:38:20 +09:30
test_plugin.py lightningd: add created_index and updated_index to listhtlcs. 2025-04-29 09:38:20 +09:30
test_reckless.py test: Fixed test plugin source paths for reckless 2024-11-19 09:06:28 +10:30
test_renepay.py pytest: fix race in test_renepay where we didn't wait for all channels. 2025-04-16 08:02:14 +09:30
test_restart.py splice: tx_abort no longer reestablishes 2024-11-21 14:15:36 +10:30
test_runes.py pytest: stop using deprecated commando_rune commands. 2025-02-13 21:15:45 -06:00
test_splice.py bkpr: add bookkeeping assertions to splice in + out tests 2024-11-17 14:25:29 +10:30
test_splicing.py pytest: fix flake in splice gossip test. 2025-03-24 13:59:58 +10:30
test_splicing_disconnect.py pytest: fix test_splice_disconnect_commit 2025-01-27 11:07:04 +10:30
test_splicing_insane.py splice: Allow splice_update to return signatures 2024-11-12 06:42:52 +10:30
test_wallet.py lightningd: rescan for missing p2wkph for closed channels. 2025-04-02 11:22:54 +10:30
test_xpay.py pytest: fix flake in test_xpay_twohop_bug 2025-05-02 13:25:11 -07:00
utils.py bkpr tests: return actual error data, not just a blank assert failure 2025-02-07 14:38:54 -06:00
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30