Skip to content

Commit d31e501

Browse files
committed
fix unittest
1 parent 89f835c commit d31e501

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_asyncio/test_cluster.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ async def test_host_port_startup_node(self) -> None:
274274

275275
async def test_aclosing(self) -> None:
276276
cluster = await get_mocked_redis_client(host=default_host, port=default_port)
277-
called = 1
277+
called = 0
278278

279279
async def mock_aclose():
280280
nonlocal called
@@ -292,10 +292,9 @@ async def test_close_is_aclose(self) -> None:
292292
args
293293
"""
294294
cluster = await get_mocked_redis_client(host=default_host, port=default_port)
295+
called = 0
295296

296-
called = 1
297-
298-
async def mock_aclose(_):
297+
async def mock_aclose():
299298
nonlocal called
300299
called += 1
301300

0 commit comments

Comments
 (0)