1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00

fix: tune test_replicaof_reject_on_load parameters (#3762)

Reduce the snapshot size by 20% and increase the timeout to avoid failures due to slow loads.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-09-23 09:50:10 +03:00 committed by GitHub
parent f1f8ee17dc
commit 29b18f0dcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()