forked from LBRYCommunity/lbry-sdk
tests
This commit is contained in:
parent
2e5c6a6d2a
commit
2005cc2948
1 changed files with 2 additions and 3 deletions
|
@ -224,7 +224,6 @@ class SPVNode:
|
||||||
self.port = 50001 + node_number # avoid conflict with default daemon
|
self.port = 50001 + node_number # avoid conflict with default daemon
|
||||||
self.udp_port = self.port
|
self.udp_port = self.port
|
||||||
self.elastic_notifier_port = 19080 + node_number
|
self.elastic_notifier_port = 19080 + node_number
|
||||||
self.rpc_port = 8000 + node_number
|
|
||||||
self.session_timeout = 600
|
self.session_timeout = 600
|
||||||
self.stopped = True
|
self.stopped = True
|
||||||
self.index_name = uuid4().hex
|
self.index_name = uuid4().hex
|
||||||
|
@ -246,7 +245,6 @@ class SPVNode:
|
||||||
'host': self.hostname,
|
'host': self.hostname,
|
||||||
'tcp_port': self.port,
|
'tcp_port': self.port,
|
||||||
'udp_port': self.udp_port,
|
'udp_port': self.udp_port,
|
||||||
'rpc_port': self.rpc_port,
|
|
||||||
'elastic_notifier_port': self.elastic_notifier_port,
|
'elastic_notifier_port': self.elastic_notifier_port,
|
||||||
'session_timeout': self.session_timeout,
|
'session_timeout': self.session_timeout,
|
||||||
'max_query_workers': 0,
|
'max_query_workers': 0,
|
||||||
|
@ -275,7 +273,8 @@ class SPVNode:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
await self.server.stop()
|
await self.server.stop()
|
||||||
await self.es_writer.stop(delete_index=True)
|
await self.es_writer.delete_index()
|
||||||
|
await self.es_writer.stop()
|
||||||
await self.writer.stop()
|
await self.writer.stop()
|
||||||
self.stopped = True
|
self.stopped = True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Reference in a new issue