On some CI runs, the seed node timer in ThreadOpenConnection was only started after the mocktime was set.
Fix this by waiting for the first connection attempt, which happens after the timer was started.
Also I noticed that the “unreachable” connections are not in fact unreachable, so that the functional test could attempt connections
to random IPs on the internet. This was already noted in #29605 (review) but the suggested fix never made it in, so I added it to this PR.
DrahtBot
commented at 7:29 pm on October 23, 2024:
contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
DrahtBot added the label
Tests
on Oct 23, 2024
test: fix intermittent timeout in p2p_seednodes.py
On some CI runs, the timer in ThreadOpenConnection was only started *after*
the mocktime was set. Fix this by waiting for the first connection attempt,
which happens after the timer was started.
Also convert some comments into log messages/add a log, so that the test
isn't completely silent.
bb97b1ffa9
test: Prevent connection attempts to random IPs in p2p_seednodes.py
These addrs aren't unreachable as the test claims.
Specify a (non-working) proxy to make sure the connections fails
even if the addr was reachable.
Co-authored-by: Vasil Dimov <vd@FreeBSD.org>
6c9fe7b73e
mzumsande force-pushed
on Oct 23, 2024
laanwj approved
laanwj
commented at 9:59 am on October 24, 2024:
member
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2025-11-13 00:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me