diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py index 15e3bdd94f44c882cd65d581926dc9ebac64bfc7..fcf67ca43136823cdc56502659cc5be285b498f7 100644 --- a/swh/model/hypothesis_strategies.py +++ b/swh/model/hypothesis_strategies.py @@ -200,6 +200,7 @@ def snapshots(draw, *, min_size=0, max_size=100, only_objects=False): for alias in unresolved_aliases: branches[alias] = draw(branch_targets(only_objects=True)) + # Ensure no cycles between aliases while True: try: id_ = snapshot_identifier({