Skip to content

Commit

Permalink
tidier
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Nov 1, 2024
1 parent 79cd178 commit 683c382
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions chia/_tests/core/services/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ async def test_services_terminate(
)
)

client: Optional[RpcClient] = None
if create_service is not None:
if create_service is None:
await asyncio.sleep(5)
else:
client = await exit_stack.enter_async_context(
create_service(
self_hostname=config["self_hostname"],
Expand All @@ -149,9 +150,6 @@ async def test_services_terminate(
)
)

if client is None:
await asyncio.sleep(5)
else:
start = time.monotonic()
while time.monotonic() - start < 50:
return_code = process.poll()
Expand Down

0 comments on commit 683c382

Please sign in to comment.