Skip to content

Commit

Permalink
test: update test_big_containers
Browse files Browse the repository at this point in the history
  • Loading branch information
BorysTheDev committed Oct 31, 2024
1 parent 4b49518 commit ef3c260
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tests/dragonfly/replication_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2677,9 +2677,12 @@ async def test_replication_timeout_on_full_sync_heartbeat_expiry(
await assert_replica_reconnections(replica, 0)


@pytest.mark.slow
@pytest.mark.parametrize(
"element_size, elements_number",
[(16, 20000), (20000, 16)],
)
@pytest.mark.asyncio
async def test_big_containers(df_factory):
async def test_big_containers(df_factory, element_size, elements_number):
master = df_factory.create(proactor_threads=4)
replica = df_factory.create(proactor_threads=4)

Expand All @@ -2689,11 +2692,11 @@ async def test_big_containers(df_factory):

logging.debug("Fill master with test data")
seeder = StaticSeeder(
key_target=20,
data_size=4000000,
collection_size=1000,
variance=100,
samples=1,
key_target=10,
data_size=element_size * elements_number,
collection_size=elements_number,
variance=1,
samples=5,
types=["LIST", "SET", "ZSET", "HASH"],
)
await seeder.run(c_master)
Expand Down

0 comments on commit ef3c260

Please sign in to comment.