fix ES index name so it stays the same within a test case

This commit is contained in:
Jack Robison 2021-09-29 13:06:55 -04:00 committed by Victor Shyba
parent 88e8926a59
commit 830fc7f8cc

View file

@ -196,11 +196,10 @@ class SPVNode:
self.session_timeout = 600 self.session_timeout = 600
self.rpc_port = '0' # disabled by default self.rpc_port = '0' # disabled by default
self.stopped = False self.stopped = False
self.index_name = None self.index_name = uuid4().hex
async def start(self, blockchain_node: 'BlockchainNode', extraconf=None): async def start(self, blockchain_node: 'BlockchainNode', extraconf=None):
self.data_path = tempfile.mkdtemp() self.data_path = tempfile.mkdtemp()
self.index_name = uuid4().hex
conf = { conf = {
'DESCRIPTION': '', 'DESCRIPTION': '',
'PAYMENT_ADDRESS': '', 'PAYMENT_ADDRESS': '',