mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-02 19:52:01 +02:00
Fix intermittent test failure, reduce test time
In txn_clone.py, non-essential test transaction tx2 was asserted to be unconfirmed, but would occasionally confirm depending on network behavior. Fix by explicitly sharing with miner and checking for 1 confirmation. Reduce required conflict tests from 4 to 2, by moving one invocation each of txn_clone.py and txn_doublespend.py to the extented test section. This saves about 15 seconds per test run for me.
This commit is contained in:
@ -19,10 +19,8 @@ testScripts=(
|
||||
'wallet.py'
|
||||
'listtransactions.py'
|
||||
'mempool_resurrect_test.py'
|
||||
'txn_doublespend.py'
|
||||
'txn_doublespend.py --mineblock'
|
||||
'txn_clone.py'
|
||||
'txn_clone.py --mineblock'
|
||||
'getchaintips.py'
|
||||
'rawtransactions.py'
|
||||
'rest.py'
|
||||
@ -44,6 +42,8 @@ testScriptsExt=(
|
||||
'bipdersig.py'
|
||||
'getblocktemplate_longpoll.py'
|
||||
'getblocktemplate_proposals.py'
|
||||
'txn_doublespend.py'
|
||||
'txn_clone.py --mineblock'
|
||||
'pruning.py'
|
||||
'forknotify.py'
|
||||
'invalidateblock.py'
|
||||
|
Reference in New Issue
Block a user