Browse Source
Don't share objects between TestInstances
pull/4/head
Casey Rodarmor
9 years ago
committed by
Jack Grigg
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with
2 additions and
2 deletions
-
qa/rpc-tests/test_framework/comptool.py
|
|
@ -140,8 +140,8 @@ class TestNode(NodeConnCB): |
|
|
|
# or false, then only the last tx is tested against outcome.) |
|
|
|
|
|
|
|
class TestInstance(object): |
|
|
|
def __init__(self, objects=[], sync_every_block=True, sync_every_tx=False): |
|
|
|
self.blocks_and_transactions = objects |
|
|
|
def __init__(self, objects=None, sync_every_block=True, sync_every_tx=False): |
|
|
|
self.blocks_and_transactions = objects if objects else [] |
|
|
|
self.sync_every_block = sync_every_block |
|
|
|
self.sync_every_tx = sync_every_tx |
|
|
|
|
|
|
|