mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
fix(test): add wait for all replicas to finish (#1124)
Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
520e66c4b7
commit
c6d34678f3
1 changed files with 2 additions and 3 deletions
|
@ -467,9 +467,8 @@ async def test_flushall(df_local_factory):
|
|||
n_keys, n_keys*2), batch_size=3)
|
||||
|
||||
await pipe.execute()
|
||||
|
||||
# Wait for replica to receive them
|
||||
await asyncio.sleep(1)
|
||||
# Check replica finished executing the replicated commands
|
||||
await check_all_replicas_finished([c_replica], c_master)
|
||||
|
||||
# Check replica keys 0..n_keys-1 dont exist
|
||||
pipe = c_replica.pipeline(transaction=False)
|
||||
|
|
Loading…
Reference in a new issue