diff --git a/old_unittests.py b/old_unittests.py index d24bb30..0ab5d92 100644 --- a/old_unittests.py +++ b/old_unittests.py @@ -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()) @@ -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))