dash/test/functional/test_framework
MarcoFalke 0841836441
Merge #16656: test: fix rpc_setban.py race
6011c9d72d1df5c2cd09de6f85c21eb4f7eb1ba8 QA: fix rpc_setban.py race (Jonas Schnelli)

Pull request description:

  The new `rpc_setban.py` test failes regularly on CIs due to a race between injecting the ban and testing the log "on the other side".

  The problem is, that the test immediately after the `addnode` command on node0 checks for the `dropped (banned)` entry on node1 (without giving some time).

  Adding a 2 seconds sleep seems to solve the race (I guess there is no better event-driven delay).

  Example of a failed test: https://bitcoinbuilds.org/index.php?ansilog=bf743910-103f-4b54-9a97-960c471061bd.log#l2906

Top commit has no ACKs.

Tree-SHA512: 680f8ea3e5ddb07e93f824f1aeff4a459e25e6c14715a39fc7670e50506d7cf25925348672c5c2d8ba3e1243ccf5effbc2456bcd094fb96868349f8d26e008f1
2021-11-25 06:38:15 +05:30
..
__init__.py
address.py Merge #14324: qa: Run more tests with wallet disabled 2021-09-24 18:48:44 -04:00
authproxy.py Merge #18596: test: Try once more when RPC connection fails on Windows 2021-09-28 14:46:44 -04:00
bignum.py
blocktools.py merge #14954: Require python 3.5 2021-08-31 11:16:12 +05:30
coverage.py
descriptors.py merge bitcoin#15368: Descriptor checksums 2021-10-28 14:01:02 +05:30
key.py Merge #15826: Pure python EC 2021-11-14 20:57:40 +05:30
messages.py Merge #14903: tests: Handle ImportError explicitly, improve comparisons against None 2021-10-08 19:13:52 +05:30
mininode.py Merge #15897: QA/mininode: Send all headers upfront in send_blocks_and_test to avoid sending an unconnected one 2021-11-21 07:13:16 +05:30
netutil.py merge #14954: Require python 3.5 2021-08-31 11:16:12 +05:30
script.py merge #14954: Require python 3.5 2021-08-31 11:16:12 +05:30
siphash.py
socks5.py merge #14954: Require python 3.5 2021-08-31 11:16:12 +05:30
test_framework.py Merge #13926: [Tools] bitcoin-wallet - a tool for creating and managing wallets offline 2021-11-13 11:04:56 -05:00
test_node.py Merge #16656: test: fix rpc_setban.py race 2021-11-25 06:38:15 +05:30
util.py Merge #15771: qa: Prevent concurrency issues reading .cookie file 2021-10-25 12:20:18 -04:00