Skip to content

Commit

Permalink
fix(test): seeder test remove check (#4320)
Browse files Browse the repository at this point in the history
fix test: seeder test remove check

Signed-off-by: adi_holden <[email protected]>
  • Loading branch information
adiholden authored Dec 16, 2024
1 parent dfd942d commit 0fe5e86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/dragonfly/seeder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ async def test_static_seeder(async_client: aioredis.Redis):
async def test_static_collection_size(async_client: aioredis.Redis):
async def check_list():
keys = await async_client.keys()
assert (await async_client.llen(keys[0])) == 1
assert len(await async_client.lpop(keys[0])) == 10_000
for key in keys:
assert await async_client.llen(key) == 1
assert len(await async_client.lpop(key)) == 10_000

s = StaticSeeder(
key_target=10, data_size=10_000, variance=1, samples=1, collection_size=1, types=["LIST"]
Expand All @@ -39,7 +40,6 @@ async def check_list():
huge_value_size=0,
)
await s.run(async_client)
await check_list()


@dfly_args({"proactor_threads": 4})
Expand Down

0 comments on commit 0fe5e86

Please sign in to comment.