Browse Source

Merge pull request #6465

56b28fc Don't share objects between TestInstances (Casey Rodarmor)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
410fd7448a
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 4
      qa/rpc-tests/test_framework/comptool.py

4
qa/rpc-tests/test_framework/comptool.py

@ -122,8 +122,8 @@ class TestNode(NodeConnCB):
# or false, then only the last tx is tested against outcome.) # or false, then only the last tx is tested against outcome.)
class TestInstance(object): class TestInstance(object):
def __init__(self, objects=[], sync_every_block=True, sync_every_tx=False): def __init__(self, objects=None, sync_every_block=True, sync_every_tx=False):
self.blocks_and_transactions = objects self.blocks_and_transactions = objects if objects else []
self.sync_every_block = sync_every_block self.sync_every_block = sync_every_block
self.sync_every_tx = sync_every_tx self.sync_every_tx = sync_every_tx

Loading…
Cancel
Save