diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2022-05-13 00:51:48 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2022-05-14 17:33:41 +0200 |
commit | 4faa5500724e3b1423ce1f927236b1ab1ac07943 (patch) | |
tree | 3a068d22955faa170939b90b24f92740cb7f982a /test/functional/p2p_leak_tx.py | |
parent | 2709ffb9da42a89e8e03b6b2c594e4a5658d7dc2 (diff) |
test: Fix race condition in index pruning test
Nodes are restarted and reconnected as part of the test. Afterwards
`sync_blocks` is called immediately on the nodes. `sync_blocks`
first checks that all the included nodes have at least one
connection. Since adding a connection is usually happening in a
thread, sometimes nodes could run into this check before the
connection was fully established so that it would fail the entire
test.
This fix uses the `connect_nodes` helper to make the connection the
nodes. `connect_nodes` has a wait for the connection built into it.
Diffstat (limited to 'test/functional/p2p_leak_tx.py')
0 files changed, 0 insertions, 0 deletions