Skip to content

Commit 14c06ff

Browse files
authored
missing wait on async test (#460)
1 parent 41e706f commit 14c06ff

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

tests/integration/high_availability/test_async_replication.py

+12-5
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,18 @@ async def test_remove_relation_and_relate(
336336
timeout=10 * MINUTE,
337337
)
338338

339-
logger.info("Waiting for the primary to settle")
340-
await first_model.wait_for_idle(
341-
apps=[MYSQL_APP1],
342-
status="active",
343-
timeout=10 * MINUTE,
339+
logger.info("Waiting for the applications to settle")
340+
await gather(
341+
first_model.wait_for_idle(
342+
apps=[MYSQL_APP1],
343+
status="active",
344+
timeout=10 * MINUTE,
345+
),
346+
second_model.wait_for_idle(
347+
apps=[MYSQL_APP2],
348+
status="blocked",
349+
timeout=10 * MINUTE,
350+
),
344351
)
345352

346353
logger.info("Re relating the two mysql clusters")

0 commit comments

Comments
 (0)