Skip to content

Commit b8235b0

Browse files
committed
fixing async test for module list
1 parent 744cb09 commit b8235b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_asyncio/test_commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2986,7 +2986,8 @@ async def test_memory_usage(self, r: redis.Redis):
29862986
@pytest.mark.onlynoncluster
29872987
async def test_module_list(self, r: redis.Redis):
29882988
assert isinstance(await r.module_list(), list)
2989-
assert not await r.module_list()
2989+
for x in await r.module_list():
2990+
assert isinstance(x, dict)
29902991

29912992

29922993
@pytest.mark.onlynoncluster

0 commit comments

Comments
 (0)