From af7f2455ec07acc001adf89cd4dc1a0c99cbf99f Mon Sep 17 00:00:00 2001 From: gmandonnan Date: Sat, 28 Oct 2023 12:40:31 +0100 Subject: [PATCH] Minor test optimisation --- old_unittests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))