From a783620a578beadf818659d3b121cfbe2c993c38 Mon Sep 17 00:00:00 2001 From: Roman Gershman Date: Sun, 22 Sep 2024 19:58:49 +0300 Subject: [PATCH] fix: tune test_replicaof_reject_on_load parameters Reduce the snapshot size by 20% and increase the timeout to avoid failures due to slow loads. Signed-off-by: Roman Gershman --- tests/dragonfly/replication_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/dragonfly/replication_test.py b/tests/dragonfly/replication_test.py index 7f2092355d2f..95cf423974ef 100644 --- a/tests/dragonfly/replication_test.py +++ b/tests/dragonfly/replication_test.py @@ -2014,7 +2014,7 @@ async def test_replicaof_reject_on_load(df_factory, df_seeder_factory): df_factory.start_all([master, replica]) c_replica = replica.client() - await c_replica.execute_command(f"DEBUG POPULATE 10000000") + await c_replica.execute_command(f"DEBUG POPULATE 8000000") replica.stop() replica.start() @@ -2031,8 +2031,9 @@ async def test_replicaof_reject_on_load(df_factory, df_seeder_factory): assert False except aioredis.BusyLoadingError as e: assert "Dragonfly is loading the dataset in memory" in str(e) + # Check one we finish loading snapshot replicaof success - await wait_available_async(c_replica) + await wait_available_async(c_replica, timeout=180) await c_replica.execute_command(f"REPLICAOF localhost {master.port}") await c_replica.close()