@@ -1187,9 +1187,9 @@ async def test_take_over_counters(df_factory, master_threads, replica_threads):
1187
1187
c2 = replica2 .client ()
1188
1188
c3 = replica3 .client ()
1189
1189
1190
- await c1 .execute_command (f"REPLICAOF localhost { master .port } " )
1191
- await c2 .execute_command (f"REPLICAOF localhost { master .port } " )
1192
- await c3 .execute_command (f"REPLICAOF localhost { master .port } " )
1190
+ await c1 .execute_command (f"REPLICAOF localhost { master .admin_port } " )
1191
+ await c2 .execute_command (f"REPLICAOF localhost { master .admin_port } " )
1192
+ await c3 .execute_command (f"REPLICAOF localhost { master .admin_port } " )
1193
1193
1194
1194
await wait_available_async (c1 )
1195
1195
@@ -1293,7 +1293,7 @@ async def test_take_over_read_commands(df_factory, master_threads, replica_threa
1293
1293
await c_master .execute_command ("SET foo bar" )
1294
1294
1295
1295
c_replica = replica .client ()
1296
- await c_replica .execute_command (f"REPLICAOF localhost { master .port } " )
1296
+ await c_replica .execute_command (f"REPLICAOF localhost { master .admin_port } " )
1297
1297
await wait_available_async (c_replica )
1298
1298
1299
1299
async def prompt ():
@@ -1329,7 +1329,7 @@ async def test_take_over_timeout(df_factory, df_seeder_factory):
1329
1329
1330
1330
logging .debug (f"PORTS ARE: { master .port } { replica .port } " )
1331
1331
1332
- await c_replica .execute_command (f"REPLICAOF localhost { master .port } " )
1332
+ await c_replica .execute_command (f"REPLICAOF localhost { master .admin_port } " )
1333
1333
await wait_available_async (c_replica )
1334
1334
1335
1335
fill_task = asyncio .create_task (seeder .run (target_ops = 3000 ))
@@ -1517,7 +1517,7 @@ async def test_replicaof_flag(df_factory):
1517
1517
1518
1518
replica = df_factory .create (
1519
1519
proactor_threads = 2 ,
1520
- replicaof = f"localhost:{ master .port } " , # start to replicate master
1520
+ replicaof = f"localhost:{ master .admin_port } " , # start to replicate master
1521
1521
)
1522
1522
1523
1523
# set up replica. check that it is replicating
0 commit comments