mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
test: fix test_network_disconnect_during_migration (#4378)
This commit is contained in:
parent
22994cf3b7
commit
b7532538fe
1 changed files with 2 additions and 3 deletions
|
@ -1433,8 +1433,7 @@ async def test_migration_with_key_ttl(df_factory):
|
|||
assert await nodes[1].client.execute_command("stick k_sticky") == 0
|
||||
|
||||
|
||||
@pytest.mark.skip("Flaky test")
|
||||
@dfly_args({"proactor_threads": 4, "cluster_mode": "yes"})
|
||||
@dfly_args({"proactor_threads": 4, "cluster_mode": "yes", "migration_finalization_timeout_ms": 5})
|
||||
async def test_network_disconnect_during_migration(df_factory):
|
||||
instances = [
|
||||
df_factory.create(
|
||||
|
@ -1473,7 +1472,7 @@ async def test_network_disconnect_during_migration(df_factory):
|
|||
await nodes[0].admin_client.execute_command("DFLYCLUSTER", "SLOT-MIGRATION-STATUS")
|
||||
)
|
||||
|
||||
await wait_for_status(nodes[0].admin_client, nodes[1].id, "SYNC")
|
||||
await wait_for_status(nodes[0].admin_client, nodes[1].id, "SYNC", 20)
|
||||
finally:
|
||||
await proxy.close(task)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue