Skip to content

Commit

Permalink
test_axon.py: add NEST_ASYNCIO:0 to env to fix issue
Browse files Browse the repository at this point in the history
Bittensor uses nest_asyncio by default. This doesn't work well with
uvicorn, that is used in the implementation of axon.

By disabling nest_asyncio the miner now runs without errors.
  • Loading branch information
µ committed Aug 14, 2024
1 parent ebd8a04 commit 5070627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e_tests/multistep/test_axon.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ async def test_axon(local_chain):
*args,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
env={"NEST_ASYNCIO": "0"},
)
await asyncio.sleep(1) # wait for the miner to start up or fail
if axon_process.returncode != None:
Expand Down

0 comments on commit 5070627

Please sign in to comment.