Skip to content

Commit dab3e1e

Browse files
authored
chore: improve test_full_sync test (#5340)
Following #5336 Signed-off-by: Roman Gershman <[email protected]>
1 parent e2fb4ff commit dab3e1e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/dragonfly/tiering_test.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,12 @@ async def test_full_sync(async_client: aioredis.Redis, df_factory: DflyInstanceF
118118
"localhost", async_client.connection_pool.connection_kwargs["port"]
119119
)
120120
logging.info("Waiting for replica to sync")
121-
async with async_timeout.timeout(120):
122-
await wait_for_replicas_state(replica_client)
121+
try:
122+
async with async_timeout.timeout(200):
123+
await wait_for_replicas_state(replica_client)
124+
except asyncio.TimeoutError:
125+
master_info = await async_client.info("ALL")
126+
replica_info = await replica_client.info("ALL")
127+
pytest.fail(
128+
f"Replica did not sync in time. \nmaster: {master_info} \n\nreplica: {replica_info}"
129+
)

0 commit comments

Comments
 (0)