Skip to content

Commit fae596f

Browse files
author
MarcoFalke
committed
[qa] Sort scripts by time for pull_tester and don't overwrite setup_chain
1 parent 3685e0c commit fae596f

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

qa/pull-tester/rpc-tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@
110110
'receivedby.py',
111111
'mempool_resurrect_test.py',
112112
'txn_doublespend.py --mineblock',
113+
'p2p-segwit.py',
114+
'segwit.py',
113115
'txn_clone.py',
114116
'getchaintips.py',
115117
'rawtransactions.py',
@@ -131,13 +133,12 @@
131133
'disablewallet.py',
132134
'sendheaders.py',
133135
'keypool.py',
136+
'p2p-mempool.py',
134137
'prioritise_transaction.py',
135138
'invalidblockrequest.py',
136139
'invalidtxrequest.py',
137140
'abandonconflict.py',
138141
'p2p-versionbits-warning.py',
139-
'p2p-segwit.py',
140-
'segwit.py',
141142
'importprunedfunds.py',
142143
'signmessages.py',
143144
]

qa/rpc-tests/p2p-mempool.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ def send_mempool(self):
7272
self.send_message(msg_mempool())
7373

7474
class P2PMempoolTests(BitcoinTestFramework):
75-
def setup_chain(self):
76-
initialize_chain_clean(self.options.tmpdir, 2)
75+
76+
def __init__(self):
77+
super().__init__()
78+
self.setup_clean_chain = True
79+
self.num_nodes = 2
7780

7881
def setup_network(self):
7982
# Start a node with maxuploadtarget of 200 MB (/24h)

qa/rpc-tests/p2p-segwit.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@ def __init__(self, sha256, n, nValue):
163163

164164

165165
class SegWitTest(BitcoinTestFramework):
166-
def setup_chain(self):
167-
initialize_chain_clean(self.options.tmpdir, 3)
166+
167+
def __init__(self):
168+
super().__init__()
169+
self.setup_clean_chain = True
170+
self.num_nodes = 3
168171

169172
def add_options(self, parser):
170173
parser.add_option("--oldbinary", dest="oldbinary",

qa/rpc-tests/segwit.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ def getutxo(txid):
7171

7272
class SegWitTest(BitcoinTestFramework):
7373

74-
def setup_chain(self):
75-
print("Initializing test directory "+self.options.tmpdir)
76-
initialize_chain_clean(self.options.tmpdir, 3)
74+
def __init__(self):
75+
super().__init__()
76+
self.setup_clean_chain = True
77+
self.num_nodes = 3
7778

7879
def setup_network(self):
7980
self.nodes = []

0 commit comments

Comments
 (0)