Skip to content

Commit

Permalink
Add back logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomirp committed Nov 28, 2024
1 parent df8a191 commit ad8e216
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration/ha_tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ async def are_writes_increasing(
use_ip_from_inside=use_ip_from_inside,
extra_model=extra_model,
)
logger.info(f"Initial writes {writes}")

for member, count in writes.items():
for attempt in Retrying(stop=stop_after_delay(60 * 3), wait=wait_fixed(3)):
with attempt:
Expand All @@ -108,6 +110,7 @@ async def are_writes_increasing(
use_ip_from_inside=use_ip_from_inside,
extra_model=extra_model,
)
logger.info(f"Retry writes {more_writes}")
assert more_writes[member] > count, (
f"{member}: writes not continuing to DB (current writes: {more_writes[member]} - previous writes: {count})"
)
Expand Down

0 comments on commit ad8e216

Please sign in to comment.