Skip to content

Commit

Permalink
chore: Fix regression test after #1569 (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
royjacobson authored Sep 18, 2023
1 parent b55316c commit 74d7826
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/dragonfly/replication_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,15 +1528,11 @@ async def test_df_crash_on_memcached_error(df_local_factory):
@pytest.mark.asyncio
async def test_df_crash_on_replicaof_flag(df_local_factory):
master = df_local_factory.create(
port=BASE_PORT,
proactor_threads=2,
)

replica = df_local_factory.create(
port=master.port + 1, proactor_threads=2, replicaof=f"127.0.0.1:{BASE_PORT}"
)

master.start()

replica = df_local_factory.create(proactor_threads=2, replicaof=f"127.0.0.1:{master.port}")
replica.start()

c_master = aioredis.Redis(port=master.port)
Expand All @@ -1550,3 +1546,6 @@ async def test_df_crash_on_replicaof_flag(df_local_factory):

res = await c_replica.execute_command("DBSIZE")
assert res == 0

master.stop()
replica.stop()

0 comments on commit 74d7826

Please sign in to comment.