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

fix: Increase the duration of the seeding in test_replication_info. (#1479)

This commit is contained in:
Roy Jacobson 2023-06-26 09:41:25 +02:00 committed by GitHub
parent 5b95668676
commit cbe72e353d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -953,8 +953,9 @@ async def test_replication_info(df_local_factory, df_seeder_factory, n_keys=2000
await assert_lag_condition(master, c_master, lambda lag: lag == 0) await assert_lag_condition(master, c_master, lambda lag: lag == 0)
seeder = df_seeder_factory.create(port=master.port, keys=n_keys, dbcount=2) seeder = df_seeder_factory.create(port=master.port, keys=n_keys, dbcount=2)
fill_task = asyncio.create_task(seeder.run(target_ops=300)) fill_task = asyncio.create_task(seeder.run(target_ops=3000))
await assert_lag_condition(master, c_master, lambda lag: lag > 30) await assert_lag_condition(master, c_master, lambda lag: lag > 30)
seeder.stop()
await fill_task await fill_task
await wait_available_async(c_replica) await wait_available_async(c_replica)