mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix: Fix test_flushall_in_full_sync
(#3929)
* fix: Fix `test_flushall_in_full_sync` This test failed in CI many times. The issue was that we reach stable sync too quickly, and miss the full sync stage. I changed the seeder to add 100k (instead of 30k) keys for the stage to take longer. * StaticSeeder
This commit is contained in:
parent
a1830e1b5e
commit
c3f9ec18ae
1 changed files with 3 additions and 2 deletions
|
@ -17,6 +17,7 @@ from .instance import DflyInstanceFactory, DflyInstance
|
|||
from .seeder import Seeder as SeederV2
|
||||
from . import dfly_args
|
||||
from .proxy import Proxy
|
||||
from .seeder import StaticSeeder
|
||||
|
||||
ADMIN_PORT = 1211
|
||||
|
||||
|
@ -1107,8 +1108,8 @@ async def test_flushall_in_full_sync(df_factory):
|
|||
c_replica = replica.client()
|
||||
|
||||
# Fill master with test data
|
||||
seeder = SeederV2(key_target=30_000)
|
||||
await seeder.run(c_master, target_deviation=0.1)
|
||||
seeder = StaticSeeder(key_target=100_000)
|
||||
await seeder.run(c_master)
|
||||
|
||||
# Start replication and wait for full sync
|
||||
await c_replica.execute_command(f"REPLICAOF localhost {master.port}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue