Skip to content

Commit 5121c68

Browse files
committed
Merge pull request bitcoin#6414
8a0b933 Fix intermittent test failure, reduce test time (Tom Harding)
2 parents fac21df + 8a0b933 commit 5121c68

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

qa/pull-tester/rpc-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ testScripts=(
1919
'wallet.py'
2020
'listtransactions.py'
2121
'mempool_resurrect_test.py'
22-
'txn_doublespend.py'
2322
'txn_doublespend.py --mineblock'
2423
'txn_clone.py'
25-
'txn_clone.py --mineblock'
2624
'getchaintips.py'
2725
'rawtransactions.py'
2826
'rest.py'
@@ -44,6 +42,8 @@ testScriptsExt=(
4442
'bipdersig.py'
4543
'getblocktemplate_longpoll.py'
4644
'getblocktemplate_proposals.py'
45+
'txn_doublespend.py'
46+
'txn_clone.py --mineblock'
4747
'pruning.py'
4848
'forknotify.py'
4949
'invalidateblock.py'

qa/rpc-tests/txn_clone.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ def run_test(self):
125125

126126
# Reconnect the split network, and sync chain:
127127
connect_nodes(self.nodes[1], 2)
128+
self.nodes[2].sendrawtransaction(fund_bar_tx["hex"])
129+
self.nodes[2].sendrawtransaction(tx2["hex"])
128130
self.nodes[2].generate(1) # Mine another block to make sure we sync
129131
sync_blocks(self.nodes)
130132

@@ -136,7 +138,7 @@ def run_test(self):
136138
# Verify expected confirmations
137139
assert_equal(tx1["confirmations"], -1)
138140
assert_equal(tx1_clone["confirmations"], 2)
139-
assert_equal(tx2["confirmations"], 0)
141+
assert_equal(tx2["confirmations"], 1)
140142

141143
# Check node0's total balance; should be same as before the clone, + 100 BTC for 2 matured,
142144
# less possible orphaned matured subsidy

0 commit comments

Comments
 (0)