Skip to content

Commit

Permalink
Minor test optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
gabedonnan committed Oct 28, 2023
1 parent 23eb98a commit af7f245
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions old_unittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ async def test_task_group(self):

# It is important to start the websocket pool before task groups
# This is due to different tasks trying to start the pool simultaneously when run
await rpc.start_pool()
t0 = time()
async with asyncio.TaskGroup() as tg:
r1 = tg.create_task(rpc.get_block_number())
Expand Down Expand Up @@ -259,7 +258,7 @@ async def test_with(self):
await rpc.get_net_version()

async def test_aio(self):
async with EthRPC("http://127.0.0.1:8545", use_socket_pool=False) as erpc:
async with EthRPC(TEST_URL, use_socket_pool=False) as erpc:
async with asyncio.TaskGroup() as tg:
for i in range(80):
tg.create_task(erpc.get_block_by_number(i, True))
Expand Down

0 comments on commit af7f245

Please sign in to comment.