forked from LBRYCommunity/lbry-sdk
handle early lbrycrd exit in tests
This commit is contained in:
parent
501fbd3114
commit
e53209e5ae
1 changed files with 2 additions and 0 deletions
|
@ -228,6 +228,7 @@ class BlockchainProcess(asyncio.SubprocessProtocol):
|
||||||
|
|
||||||
def process_exited(self):
|
def process_exited(self):
|
||||||
self.stopped.set()
|
self.stopped.set()
|
||||||
|
self.ready.set()
|
||||||
|
|
||||||
|
|
||||||
class BlockchainNode:
|
class BlockchainNode:
|
||||||
|
@ -315,6 +316,7 @@ class BlockchainNode:
|
||||||
BlockchainProcess, *command
|
BlockchainProcess, *command
|
||||||
)
|
)
|
||||||
await self.protocol.ready.wait()
|
await self.protocol.ready.wait()
|
||||||
|
assert not self.protocol.stopped.is_set()
|
||||||
|
|
||||||
async def stop(self, cleanup=True):
|
async def stop(self, cleanup=True):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue