Fix running individually through test_runner.py, as suggested by @MarcoFalke (#14732)

This commit is contained in:
Kristaps Kaupe
2018-11-16 20:33:35 +02:00
parent 35739976c1
commit 2474de0265
2 changed files with 8 additions and 18 deletions

View File

@@ -25,12 +25,13 @@ def tx_from_hex(hexstring):
class ListTransactionsTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 2
self.enable_mocktime()
def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
def run_test(self):
self.nodes[0].generate(1) # Get out of IBD
self.sync_all()
# Simple send, 0 to 1:
txid = self.nodes[0].sendtoaddress(self.nodes[1].getnewaddress(), 0.1)
self.sync_all()