Skip to content

Commit caabc1d

Browse files
committed
chore: add time printing
Signed-off-by: Roman Gershman <[email protected]>
1 parent 47793e2 commit caabc1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/dragonfly/replication_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ async def check_all_replicas_finished(c_replicas, c_master, timeout=20):
167167
start = time.time()
168168
while (time.time() - start) < timeout:
169169
if not waiting_for:
170+
logging.debug("All replicas finished after %s seconds", time.time() - start)
170171
return
171172
await asyncio.sleep(0.2)
172173
m_offset = await c_master.execute_command("DFLY REPLICAOFFSET")
@@ -2714,7 +2715,7 @@ async def test_replication_timeout_on_full_sync_heartbeat_expiry(
27142715

27152716
await asyncio.sleep(1) # replica will start resync
27162717

2717-
await check_all_replicas_finished([c_replica], c_master)
2718+
await check_all_replicas_finished([c_replica], c_master, 60)
27182719
await assert_replica_reconnections(replica, 0)
27192720

27202721

0 commit comments

Comments
 (0)